diff options
Diffstat (limited to 'src/Exception/Http/MethodNotAllowedError.js')
-rw-r--r-- | src/Exception/Http/MethodNotAllowedError.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Exception/Http/MethodNotAllowedError.js b/src/Exception/Http/MethodNotAllowedError.js new file mode 100644 index 0000000..38e252c --- /dev/null +++ b/src/Exception/Http/MethodNotAllowedError.js @@ -0,0 +1,18 @@ +import HttpError from './HttpError'; + +export default class MethodNotAllowedError extends HttpError { + + /** + * @returns {String} + */ + get name() { + return 'MethodNotAllowedError'; + } + + /** + * @param {Response} response + */ + constructor(response) { + super(response, 'Method Not Allowed'); + } +}
\ No newline at end of file |