Skip to content

read/handle status codes #1

@arieljake

Description

@arieljake

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions