Skip to content

Instantly share code, notes, and snippets.

@artisonian
Created December 11, 2012 15:19
Show Gist options
  • Save artisonian/4259246 to your computer and use it in GitHub Desktop.
Save artisonian/4259246 to your computer and use it in GitHub Desktop.
Sample API error handling
{
"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