# Errors

While using Nightfall's Scan API, you may encounter some of the common errors outlined below. Try following the provided troubleshooting steps.

If problems persist, please [contact Nightfall Support](mailto:support@nightfall.ai) for further assistance.

### HTTP Error Codes

The following error codes are returned as part of a standard HTTP response.

| HTTP Error Code | Description                         | Troubleshooting                                                                                                                                                                                                                                                                                                        |
| --------------- | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 400             | Bad Request                         | <p>This error most often occurs when there is something syntactically incorrect in the body of your request. Check your request format and try again.<br><br>For example, this error could occur if the request body size is greater than 500 KB, or if the number of items to scan in the payload exceeds 50,000.</p> |
| 401             | Unauthorized                        | You may be using an incorrect API key or calling the wrong endpoint.                                                                                                                                                                                                                                                   |
| 422             | Unprocessable Entity                | <p>You may be using an invalid or unrecognized detector set.<br><br>You may also have exceeded the maximum allowable payload size; try spreading your payload across multiple requests.</p>                                                                                                                            |
| 429             | Too Many Requests or Quota Exceeded | Either your monthly request limit has been exceeded, or you have exceeded the allowed rate limit. Consider upgrading to a higher volume plan, or wait several moments to retry the requests.                                                                                                                           |
| 500             | Internal Server Error               | Wait a few moments and try again. If the problem persists, Nightfall may be experiencing an outage.                                                                                                                                                                                                                    |

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.nightfall.ai/developer-api/key-concepts/errors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
