Skip to content

Instantly share code, notes, and snippets.

@jadon1979
Created December 26, 2013 20:34
Show Gist options
  • Select an option

  • Save jadon1979/8138352 to your computer and use it in GitHub Desktop.

Select an option

Save jadon1979/8138352 to your computer and use it in GitHub Desktop.
en:
api_responses:
status_codes:
code-200: "Operation successful."
code-400: "Bad Request: The request could not be understood by the server due to malformed syntax."
code-401: "Not Authorized: Either the header did not contain an acceptable Authorization or the username/password was invalid. The server response MUST include a WWW-Authenticate header field."
code-402: "Payment Required: The requested transaction requires a payment which could not be authorized."
code-403: "Forbidden: The server understood the request, but is refusing to fulfill it."
code-404: "Not Found: The server has not found anything matching the Request-URI."
code-405: "Method Not Allowed: The method specified in the Request-Line is not allowed for the resource identified by the Request-URI."
code-406: "Not Acceptable: The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request."
code-408: "Request Timeout: The client did not produce a request within the time that the server was prepared to wait."
code-411: "Length Required: The server refuses to accept the request without a defined Content-Length."
code-412: "Precondition Failed: Transaction not permitted at this point in the session"
code-413: "Request Entity Too Large: The server is refusing to process a request because the request entity is larger than the server is willing or able to process."
code-414: "Request-URI Too Long: The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret. This error usually only occurs for a GET method."
code-500: "Internal server error: The server encountered an unexpected condition which prevented it from fulfilling the request."
code-501: "Not Implemented: The server does not support the functionality required to fulfill the request."
code-503: "Service Unavailable: The server is currently unable to handle the request due to a temporary overloading or maintenance of the server."
code-505: "HTTP Version Not Supported: The server does not support, or refuses to support, the HTTP protocol version that was used in the request message."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment