Skip to content

Instantly share code, notes, and snippets.

@lfryc
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfryc/fdb7c7411c807e7d99c9 to your computer and use it in GitHub Desktop.
Save lfryc/fdb7c7411c807e7d99c9 to your computer and use it in GitHub Desktop.
{
"status": 401 // this doesn't have to be repeated, since it is in HTTP header
"message": "Something failed", // a client-facing meaningful/descriptive message
"exception": "SomeException", // this is helpful to nail down error message
"code": 10034 // this is helpful to point user to particular configuration section, etc.
"more_info": "http://www.." // where client can get more information
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment