# HTTP Status Kodlar

{% hint style="info" %}
Paynet API Servislerinde isteğin başarısını veya başarısızlığını göstermek için http yanıt kodlarını kullanır. Genel olarak 2XX aralığında kodları başarıyı gösterir. 4XX aralığındaki kodlar verilen bilgilerden kaynaklanan bir hatayı gösterir ve 5XX aralığındaki kodlar ise hatanın sunucu kaynaklı olduğunu işaret eder.Eğer servisler response olarak http 200 dönüyor ise dönen nesnenin içeriğinde “code” ve “message”, eğer http 200 harici bir http kodu dönüyor ise aşağıdaki formatta bir json cevabı döner.
{% endhint %}

#### Error Nesnesi

| Parametre İsmi   | Anlamı                                                                                                                     |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------- |
| **type**         | Hatanın tipi. bknz.[Hata Tipleri](/uornek/genel-bilgiler/hata-kodlari/hata-tipleri.md)                                     |
| **message**      | Hata mesajı                                                                                                                |
| **code**         | Http Status Kodu bknz. [HTTP Status Kodlar](/uornek/genel-bilgiler/hata-kodlari/http-status-kodlar.md#http-status-kodlari) |
| **result\_code** | Dönüş kodu bknz.[Dönüş Kodları](/uornek/genel-bilgiler/hata-kodlari/doenues-kodlari.md)                                    |

#### Http Status Kodları

| Hata Kodu | Anlamı                                          |
| --------- | ----------------------------------------------- |
| **200**   | **OK** – İşlem Başarılı                         |
| **400**   | **Bad Request** – İstek Hatası                  |
| **401**   | **Unauthorized** – API anahtarınız yanlış       |
| **403**   | **Forbidden** – Auth için yasak istek           |
| **404**   | **Not Found** – Bulunamadı                      |
| **405**   | **Method Not Allowed** – izin verilmeyen yöntem |


---

# 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://doc.paynet.com.tr/uornek/genel-bilgiler/hata-kodlari/http-status-kodlar.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.
