DELAPARRA
Index
Color
NL
Category: HTTP status codes

405 Method Not Allowed

Explained by Updated

What is 405 Method Not Allowed?

405 Method Not Allowed: The HTTP method used is not supported for this endpoint. 405 Method Not Allowed means the URL exists, but not for the HTTP method used. Sending a POST to a URL that only accepts GET is a typical cause. The response should include an Allow header listing the methods that do work, such as Allow: GET, HEAD. That tells the client what it did wrong.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about 405 Method Not Allowed

What should you keep in mind with 405 Method Not Allowed?

You often see 405 when a form or API call uses the wrong method, or when a route was defined for one method and called with another. In frameworks that support it, HTML forms send PUT and DELETE through a hidden _method field, and forgetting that field produces exactly this error. It is a quick fix once you know to look at the method rather than the URL.

At a glance

CategoryHTTP status codes
Explained by
Updated

More HTTP status codes terms

All terms starting with a number or symbol

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.