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.

In more detail

The Allow header is required, because without it the client can only guess which verb to use instead. For example, a collection might accept GET and POST but not PUT.

Example

In the APIs course: The course service answers PUT on the collection with 405 and Allow: GET, HEAD, POST.

Related terms

Taught in

References