diff --git a/src/pjdietz/WellRESTed/Exceptions/HttpExceptions.php b/src/pjdietz/WellRESTed/Exceptions/HttpExceptions.php index 0705527..e3dc30d 100644 --- a/src/pjdietz/WellRESTed/Exceptions/HttpExceptions.php +++ b/src/pjdietz/WellRESTed/Exceptions/HttpExceptions.php @@ -74,6 +74,17 @@ class NotFoundException extends HttpException protected $message = "404 Not Found"; } +/** + * Represents a 405 Method Not Allowed error. + */ +class MethodNotAllowedException extends HttpException +{ + /** @var int HTTP Status Code */ + protected $code = 405; + /** @var string Default description for the error */ + protected $message = "405 Method Not Allowed"; +} + /** * Represents a 409 Conflict error. */ @@ -84,3 +95,14 @@ class ConflictException extends HttpException /** @var string Default description for the error */ protected $message = "409 Conflict"; } + +/** + * Represents a 410 Gone error. + */ +class GoneException extends HttpException +{ + /** @var int HTTP Status Code */ + protected $code = 410; + /** @var string Default description for the error */ + protected $message = "410 Gone"; +}