Created
December 11, 2012 15:19
-
-
Save artisonian/4259246 to your computer and use it in GitHub Desktop.
Sample API error handling
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
{ | |
"status_code": "400", | |
"errors": { | |
"order.ice_cream.flavor": ["Flavor cannot be blank", "Flavor must be one of 'vanilla', 'chocolate', or 'strawberry'"], | |
"order.ice_cream.container": ["Container must be one of 'bowl', or 'cone'"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment