Skip to main content

Client Error (4xx)

HTTP/1.1

405 Method Not Allowed

The requested URI exists, but the HTTP method used is not supported.

CategoryClient Error (4xx)
API error types1 error schema
Related headers2 headers
Updated2026-07-09

What does HTTP status code 405 mean?

The 405 Method Not Allowed status code indicates that the resource exists at the given URI, but the server does not support the HTTP method used in the request.

When to use it in APIs

Returned automatically by route engines when a client attempts to POST to a GET-only endpoint. Must include an Allow header listing supported methods.

How it compares to other codes

  • 404 Not Found: Used when the route does not exist at all, whereas 405 indicates the route exists but is restricted to other methods.

Problem types for 405

1