METHOD_NOT_ALLOWED constant

int const METHOD_NOT_ALLOWED

The request method is known by the server but has been disabled and cannot be used. For example, an API may forbid DELETE-ing a resource. The two mandatory methods, GET and HEAD, must never be disabled and should not return this error code.

https://tools.ietf.org/html/rfc7231#section-6.5.5

Implementation

static const int METHOD_NOT_ALLOWED = 405;