typestack / routing-controllers

Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage in Express / Koa using TypeScript and Routing Controllers Framework.
MIT License
4.42k stars 394 forks source link

Added Unprocessable Entity (422) HTTP Error #1459

Closed shevchenkonik closed 3 days ago

shevchenkonik commented 1 week ago

Description

Added new HTTP Error for 422 Unprocessable Entity

Checklist

attilaorosz commented 1 week ago

Is this something that is needed? The framework does not use it, so technically it’s no different from a user defined error.

shevchenkonik commented 1 week ago

I would like to use it as a part of default HTTP errors to be consistent with other exposed HTTP errors from the library.