Skip to content

405 for wrong method instead of 404 #2055

@ghost

Description

Is it possible to have 405 (Method Not Allowed) returned in reply to existing url, which was called with a wrong method (e.g. GET instead of POST)?
Currently, express returns 404 (Not Found) for existing url, called with a wrong method, and, it is sort of misleading in debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions