HTTP status code 405 — Method Not Allowed

Quick answer

Status code 405 (Method Not Allowed): HTTP method is not supported for this resource. Look at Allow header for permitted verbs (GET, POST, …).

Look at Allow header for permitted verbs (GET, POST, …).

405 means the path exists but that verb does not. A GET-only resource will 405 on POST — fix the client method or the route.

Common causes

How to fix it

Check the Allow response header for the verbs the route actually supports, then match your client to one of those.

All HTTP status codesJSON Formatter

Related: 404403408401409400500308

Frequently asked questions

What is status code 405?

405 Method Not Allowed: HTTP method is not supported for this resource. Look at Allow header for permitted verbs (GET, POST, …).

When should I expect HTTP 405?

405 means the path exists but that verb does not. A GET-only resource will 405 on POST — fix the client method or the route.

What usually causes HTTP 405?

Calling POST/DELETE on a read-only endpoint; A REST client using the wrong verb for an action (e.g. GET instead of POST to trigger something).

How do I fix HTTP 405?

Check the Allow response header for the verbs the route actually supports, then match your client to one of those.

Where can I see all status codes?

Open the HTTP status codes hub on TryDevSnip for the full reference list.

Does TryDevSnip log my API traffic?

No. These pages are static reference. TryDevSnip does not proxy or inspect your HTTP calls.

TryDevSnip