Skip to content

Return 422 instead of 400 when validation fails #240

@evillemez

Description

@evillemez

422 is more descriptive of what is actually happening when validation fails on an object - the entity is unprocessable. The request its self is still ok, it's just the contents that are bad, so 400 is the wrong code for this scenario.

@gliese1337 Will this cause you any issues if I make this change?

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