Question:
- We are trying to achieve this for 400, there can be multiple reasons for failure. Within the same 400, like for user creation, invalid email, invalid mobile number, etc, which are different error codes within the 400 status code itself.
Answer:
- The best way to achieve multiple error codes in one response body is to have the response body contain an array of error objects as seen below.
Comments
0 comments
Please sign in to leave a comment.