contributte / apitte

:wrench: An opinionated and enjoyable API framework based on Nette Framework. Supporting content negotiation, debugging, middlewares, attributes, annotations and loving openapi/swagger.
https://contributte.org/packages/contributte/apitte/
MIT License
61 stars 36 forks source link

Returns 500 when creating an entity #155

Closed miranovy closed 3 years ago

miranovy commented 3 years ago

Apitte returns a status code of 500 when attempting to create an entity from a request that is not valid.

The expected behavior is that it returns a status code of 400.

f3l1x commented 3 years ago

Hey ✋ Feel free to prepare a PR.