AngelHttpException.methodNotAllowed constructor

AngelHttpException.methodNotAllowed(
  1. {String message: '405 Method Not Allowed'}
)

Throws a 405 Method Not Allowed error.

Implementation

factory AngelHttpException.methodNotAllowed(
        {String message = '405 Method Not Allowed'}) =>
    new AngelHttpException(null, message: message, statusCode: 405);