# Error Code Master

ClearTax uses conventional HTTP response codes to indicate the success or failure of an API request.

Errors can be of two types&#x20;

1. Invalid or unauthorized request error (4XX)
2. Internal server error (5XX)

The following are the HTTP response codes and their summary. <br>

| HTTP Response Code                 | Summary                                                                                         |
| ---------------------------------- | ----------------------------------------------------------------------------------------------- |
| 200 - OK                           | Everything worked as expected                                                                   |
| 201 - CREATED                      | The task or workflow was created                                                                |
| 400 - BAD REQUEST                  | The request was unacceptable, often due to  a missing or invalid required parameter             |
| 401 - UNAUTHORIZED                 | No valid auth token provided                                                                    |
| 402 - REQUEST FAILED               | Parameters were valid but request failed                                                        |
| 409 - CONFLICT                     | The request conflicts with another request (perhaps due to pending workflow)                    |
| 429 - TOO MANY REQUESTS            | Too many requests hit the API too quickly. We recommend an exponential backoff of your requests |
| 500, 502, 503, 504 - SERVER ERRORS | Something went wrong on ClearTax end. These are rare                                            |


---

# 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://docs.cleartax.in/cleartax-docs/max-itc-api/max-itc-api-reference/resources-and-masters/error-code-master.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.
