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

Throws a 405 Method Not Allowed error.

Source

AngelHttpException.MethodNotAllowed(
    {String message: '405 Method Not Allowed'})
    : super(405, message);