---
title: "Yanıtlar ve hatalar"
description: "Yanıt zarfı, HTTP durumuna göre hata kodları ve error.code ile dallanma."
url: https://www.gyrohosting.com/developers/tr/guides/errors.html
language: tr
openapi: https://www.gyrohosting.com/developers/openapi.json
api_version: 2.30.0
---

# Yanıtlar ve hatalar

Başarılı: `{"data": …, "meta": {…}}`. Hata: `{"error": {"code": "server_not_found", "message": "…", "details": {…}}}`.
Mesaja değil `code` alanına göre karar verin (mesajlar hesap dilinizdedir).

| HTTP | Sık kodlar |
|---|---|
| 400 | idempotency_key_required, bad_request |
| 401 | missing_token, invalid_token, key_revoked |
| 402 | insufficient_balance |
| 403 | insufficient_scope, ip_not_allowed, orders_disabled |
| 404 | server_not_found, ssh_key_not_found, snapshot_not_found, endpoint_not_found |
| 409 | server_locked, not_actionable, ssh_key_exists, server_limit, idempotency_in_flight |
| 422 | confirm_required, invalid_image, invalid_hostname, product_not_orderable, tool_action_failed |
| 429 | rate_limited (`Retry-After` başlığına bakın) |
