Skip to main content
All HTTP Status Codes
405

Method Not Allowed

4xx Client Error

RFC 9110

What it means

The HTTP method used is not allowed for this endpoint. The response must include an Allow header listing the permitted methods.

Common causes

  • Sending POST to a GET-only endpoint
  • Sending DELETE to a read-only resource
  • Wrong method for the API route

How to fix it

Check the API documentation for the correct HTTP method. Look at the Allow header in the response to see what methods are permitted.

Example response

HTTP/1.1 405 Method Not Allowed
Allow: GET, HEAD, OPTIONS

Test this status code live

Send real HTTP requests and inspect status codes directly in your browser.

Open HTTP Tester

Related status codes

Other 4xx Client Error codes