# Error & Rate Limit

### Error Codes

| HTTP | Meaning                        |
| ---- | ------------------------------ |
| 400  | Bad request / validation error |
| 401  | Missing or invalid API key     |
| 404  | Resource not found             |
| 500  | Internal server error          |
| 502  | Upstream provider error        |

***

### Rate Limits

API requests are subject to rate limiting. If you exceed the limit, you'll receive a `429` response. Wait and retry.

***

### Notes

* All prices are in **IDR (Rupiah)**.
* Orders expire after **20 minutes** if no OTP is received.
* Poll `GET /order/status` to check for incoming OTP codes.
* Once you receive the OTP, call `POST /order/status` with `action: "finish"` to complete.
* If you no longer need the number, call with `action: "cancel"` to get a refund.


---

# 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://otpgan.gitbook.io/overview/error-and-rate-limit.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.
