How to redefine default HTTP code if validation is failed? #576
Unanswered
yalagtyarzh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For example, I have struct with validation parameters:
If validation is failed, I get back 422 error. Instead of this, I want to receive 400 error. I saw that I can change the response body with Transformer. Is there any mechanism to redefine default validation error response code, like Transformer?
Beta Was this translation helpful? Give feedback.
All reactions