Allow header
The response header listing the methods a resource accepts, required on every 405 Method Not Allowed answer.
In more detail
With Allow: GET, HEAD, POST a client that used the wrong method knows immediately which ones will work instead of guessing. It can also be sent on successful responses, and in answer to OPTIONS, to advertise what a resource supports.
Related terms
- 405 Method Not Allowed — The HTTP status meaning the resource exists but does not accept this method, answered with an Allow header listing the methods it does accept.
- HTTP method — The verb at the start of a web request that says what the client wants, such as GET to read or POST to create.
Taught in
- HTTP Methods And Status Codes — Modern API Architecture: REST, GraphQL & gRPC
- Cookies And CORS — Modern API Architecture: REST, GraphQL & gRPC