---
updatedAt: 2025-06-09T22:06:05.000Z
agentTools:
  projectIndex: https://streak.readme.io/llms.txt
---

# Error Codes

If a call to the Streak API causes an error, the most appropriate HTTP status code is set in the response and a JSON object is returned with details about the error.

[HTTP status codes](https://cybernews.com/resources/web-hosting-glossary/#301) in the `200`'s mean a successful call to the API, status codes in the `400`'s mean there was a problem with the the parameters in the API call and status codes in the `500`'s mean there was an issue with Streak servers. In any case, a JSON object is returned in the response. Below is a table of possible status codes:

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Status Code
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `200`
      </td>

      <td>
        **Success** 
      </td>
    </tr>

    <tr>
      <td>
        `400`
      </td>

      <td>
        * \*Bad Request.\*\* This usually occurs when trying to access the API over http instead of https.
      </td>
    </tr>

    <tr>
      <td>
        `401`
      </td>

      <td>
        * \*Unauthorized.\*\* Either the API key provided does not have access to the resource or the provided API key is invalid.
      </td>
    </tr>

    <tr>
      <td>
        `404`
      </td>

      <td>
        * \*Not Found.\*\* The resource requested was not found.
      </td>
    </tr>

    <tr>
      <td>
        `410`
      </td>

      <td>
        * \*Gone\*\*. The API is no longer supported.
      </td>
    </tr>
  </tbody>
</Table>