Skip to content

405 should return Allow header #489

Open
@jkarni

Description

@jkarni

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions