HTTP 405 — Method Not Allowed

A request method is not supported for the requested resource

When to use it

Use status 405 when this is the correct HTTP response semantic: A request method is not supported for the requested resource

Request and response example

PATCH /health HTTP/1.1
Host: api.example.com

HTTP/1.1 405 Method Not Allowed
Allow: GET

Related status codes

400, 401, 402, 403

References

MDN · RFC 9110