Skip to content

400 instead of 500 when params validation failed #770

@c910335

Description

@c910335

Description

ValidationFailed is apparently a client error due to passing invalid params.
Thus, server should response 400 Bad Request instead of 500 Internal Server Error when ValidationFailed is raised.

Steps to Reproduce

  1. Start a new amber project
  2. Generate a scaffold with at least one field
  3. POST it without params

Expected behavior: 400 Bad Request

Actual behavior: 500 Internal Server Error

Reproduces how often: always

Versions

v0.7.2 and master

Additional Information

I think @faustinoaq is ready to fix this.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions