Last active
September 9, 2016 10:36
-
-
Save christianklotz/586ba79081257ed2f608b77cad81529b to your computer and use it in GitHub Desktop.
Error response for a food request resulting in a validation error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"message": "validation failed", | |
"code": 1234, | |
"errors": [{ | |
"code": 5678, | |
"message": "not so healthy", | |
"field": "food", | |
"suggested_value": "🍎" | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The original request could have been something like