Status Codes

Cake Slice aims to be as easy to work with as possible, and as such, returns helpful status codes and error messages. Below is a quick overview of the potential responses you may run across and what they mean.

Success codes

  • Name
    200 OK
    Type
    Description

    We've successfully received and processed your request.

  • Name
    202 Accepted
    Type
    Description

    We've received your request and are working on processing it asynchronously.

Error codes

  • Name
    403 Forbidden
    Type
    Description

    Your request was not authenticated. Check your API token and Authorization header and try again.

  • Name
    422 Unprocessable Content
    Type
    Description

    Your request was not processable, most likely due to malformed or invalid params.

  • Name
    429 Too Many Requests
    Type
    Description

    You've hit your rate limit. Wait a bit a and try again.

  • Name
    500 Internal Server Error
    Type
    Description

    Something went wrong on our side. Ideally, you'll never see one of these.