Question
Can I include additional data in my custom error message?
Asked by: USER6822
57 Viewed
57 Answers
Answer (57)
Yes, you can. You can include any relevant data in the JSON response along with your custom error message. For example, you might include the invalid field name or the specific error code. This provides more context to the user or client.