Created
July 29, 2011 11:16
-
-
Save dexterous/1113634 to your computer and use it in GitHub Desktop.
The (ho|e)rror!
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
// if you're going to send back... | |
{ | |
'status' : 'Failure', | |
'message' : 'Resource creation failed', | |
'errors' : ['Problems creating resource in the system'] | |
} | |
// ... you might as well just save everyone the trouble and send back... | |
{ 'shit happened': true } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment