code405MethodNotAllowed constant

HttpStatus const code405MethodNotAllowed

An alias representing the methodNotAllowed constant, offering a direct substitute for it.

For consistency and improved readability, it is recommended to directly use methodNotAllowed where possible.

405 METHOD NOT ALLOWED.

The method received in the request-line is known by the origin server but not supported by the target resource.

The origin server MUST generate an Allow header field in a 405 response containing a list of the target resource's currently supported methods.

A 405 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls.

Implementation

static const HttpStatus code405MethodNotAllowed = methodNotAllowed;