diff --git a/lib/Bridge.php b/lib/Bridge.php index b943158..69880bb 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -30,6 +30,14 @@ abstract class BridgeAbstract implements BridgeInterface{ throw new \HttpException($message, $code); } + protected function returnClientError($message){ + $this->returnError($message, 400); + } + + protected function returnServerError($message){ + $this->returnError($message, 500); + } + /** * Return datas stored in the bridge * @return mixed