X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FErrorController.php;fp=application%2Fcontrollers%2FErrorController.php;h=0a6c46868f402bef9e45771c31a9781b4942dbc2;hp=043b19945d898859a732fbc6e4bcc32c2114f141;hb=00c2579ade64a20ba2d82e98d3eea5f864864cdb;hpb=36a21a430d77f914b32eed29019f1f3cd5e9c3fa diff --git a/application/controllers/ErrorController.php b/application/controllers/ErrorController.php index 043b199..0a6c468 100644 --- a/application/controllers/ErrorController.php +++ b/application/controllers/ErrorController.php @@ -28,6 +28,8 @@ class ErrorController extends Zend_Controller_Action $error_code = 400; // Bad Request } else if ($error->exception instanceof Syj_Exception_Forbidden) { $error_code = 403; // Forbidden + } else if ($error->exception instanceof Syj_Exception_NotImplemented) { + $error_code = 501; // Not Implemented } else if ($error->exception instanceof Syj_Exception_NotFound) { $error_code = $error->exception->getCode(); }