You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love readValidatedBody but 400 as status error is too generic, I use it for all sort of errors and I would like to have the ability to set a better error code.
Ideally it would simply be: readValidatedBody(event, schema.parse, 422)
it can be 400 as default so it wouldn't be a breaking change, even tough I would personally prefer 422
Additional information
Would you be willing to help implement this feature?