Skip to content

Disallowed HTTP verbs throw 404 instead of 405 #26759

@tehplague

Description

@tehplague
Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? no
Symfony version 4.0.7

Symfony 4.0.7 now throws an HTTP 404 (Not Found) when you perform a request with a method excluded in the route configuration (e.g. when there are only routes supporting GET and you perform a POST). Previously (tested with 4.0.6) this used to be a HTTP 405 (Method not allowed) that IMHO fits better in this case. At least, if this behaviour was desired, it breaks BC.

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