405 Method Not Allowed

Explanation:

The 405 Method Not Allowed status code indicates that the request method is known by the server but has been disabled and cannot be used. The server must include an Allow header in the response to inform the client which methods are allowed.

Usage:

This status code is used to inform the client that the request method is not allowed for the given resource.

Attentions:

  • The server should include information about the allowed methods in the response message if possible.
  • The response should include an Allow header to indicate the allowed methods.

Sample:

undefined