Skip to content

Instantly share code, notes, and snippets.

@charleyhine
Last active October 15, 2015 21:45
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 charleyhine/e4649bb5bb442867be8f to your computer and use it in GitHub Desktop.
Save charleyhine/e4649bb5bb442867be8f to your computer and use it in GitHub Desktop.
Example API Error Reponses
status code 401

{
  "error": {
    "type": "invalid_request_error",
    "message": "Authentication to the API occurs via HTTP Basic Auth"
  }
}
status code 400

{
  "error": {
    "type": "invalid_request_error",
    "message": "Invalid region provided (must be US two letter state)",
    "parameter": "region"
  }
}
status code 500

{
  "error": {
    "type": "api_error",
    "message": "Temporary API disruption"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment