Back to all status codes

405

Method Not Allowed

Client Error
RFC 7231

The request method is not supported for the requested resource.

Detailed Information

The 405 status code indicates that the request method is not supported for the requested resource. The response must include an Allow header containing a list of valid methods for the requested resource.

Common Examples

  • Accessing a resource with an unsupported HTTP method
  • API requests with invalid methods

Common Uses

  • API requests with invalid methods
  • Unsupported resource access

Best Practices

  • Use when the requested method is not supported
  • Include Allow header with supported methods
  • Ensure proper routing and resource configuration

Additional Resources

Read more on MDN