haskell-servant / haskell-servant/servant

405 should return Allow header

Open
#489 3 comments 0 reactions 0 assignees View on GitHub
bug in progress servant-server
Dominant language
Haskell
Stars
2k
Forks
427
Avg merge
2d 23h
Merged PRs (30d)
5

Description

From RFC 2616:

> 10.4.6 405 Method Not Allowed
> The method specified in the Request-Line is not allowed for the resource identified by the Request-URI. The response MUST include an Allow header containing a list of valid methods for the requested resource.

We currently don't send the `Allow` header, and should (_must_!). This means introspecting what other endpoints exist that match a certain path.

It seems like the work that went into #451 is also related, so pinging @kosmikus .

Related to #278. Fixing one will likely allow us to fix the other. It would also get us further along proper HATEOAS.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.