Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read/handle status codes #1

Open
arieljake opened this issue May 29, 2012 · 0 comments
Open

read/handle status codes #1

arieljake opened this issue May 29, 2012 · 0 comments

Comments

@arieljake
Copy link
Owner

Status Codes

The success or failure of a request is indicated by an HTTP status code. A 2xx status code indicates success, whereas a 4xx or 5xx status code indicates an error.

Code Status
200 OK: Successful GET
201 Created: Successful POST
400 Bad Request: Invalid JSON (can't be parsed or has wrong types).
401 Unauthorized: The OAuth token is either not provided or invalid.
404 Not Found: The resource, project, or endpoint being requested doesn’t exist.
405 Invalid HTTP method: A GET, POST, DELETE, or PUT was sent to an endpoint that doesn’t support that particular verb.
406 Not Acceptable: Required fields are missing.
500 Internal Server Error: Something went wrong on the server side.
503 Service Unavailable: A temporary error occurred with the request. Clients should implement exponential backoff and retry the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant