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
-
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