Skip to content

On HTTP 405 Method Not Allowed, provide Allow response header#1

Open
mdwhatcott wants to merge 1 commit intomasterfrom
mikewhat/http-405-allow-header
Open

On HTTP 405 Method Not Allowed, provide Allow response header#1
mdwhatcott wants to merge 1 commit intomasterfrom
mikewhat/http-405-allow-header

Conversation

@mdwhatcott
Copy link
Contributor

The HTTP spec is pretty clear:

The 405 (Method Not Allowed) status code indicates that the method
received in the request-line is known by the origin server but not supported by the target resource. The origin server MUST generate an Allow header field in a 405 response containing a list of the target resource's currently supported methods.

https://httpwg.org/specs/rfc9110.html#status.405

The HTTP spec is pretty clear:

> The 405 (Method Not Allowed) status code indicates that the method
received in the request-line is known by the origin server but not
supported by the target resource. The origin server MUST generate an
Allow header field in a 405 response containing a list of the target
resource's currently supported methods.

https://httpwg.org/specs/rfc9110.html#status.405
@XanSmarty XanSmarty self-assigned this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants