Skip to content

405 method not allowed vs. 404 not found #271

@solarfly73

Description

@solarfly73

When .Method("GET") is specified and "POST" is called on that endpoint, a 404 is returned instead of a 405. The only function I can see for handling missing stuff is the NotFound() and the handler wrapper. Can we get a 405 on missing methods instead?

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