Durum Yanıt Kodları
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
HTTP yanıtlarında aşağıdaki durum kodları döndürülebilir.
HTTP Kodu |
HTTP Açıklaması |
Notlar |
2xx |
Tamam |
Hata değildir; başarılı olduğunda döndürülür. Bu, iş mantığı hataları için de kullanılmalıdır (ör.CreateBookingResponse içindeki booking_failure doldurulur). |
400 |
Hatalı İstek |
Hatalı İstek/Geçersiz Bağımsız Değişkenler (satıcı, hizmet, zaman aralığı bulunamadı, geçersiz bir zaman aralığı için rezervasyon yapılmaya çalışılıyor, hiç var olmayan bir rezervasyon iptal ediliyor). |
401 |
Yetkilendirilmedi |
Kimlik doğrulaması yapılmadı (geçersiz kimlik bilgileri, girişi yeniden deneyin). İstekte işlemle ilgili geçerli kimlik doğrulama bilgileri bulunmuyor. |
403 |
Yasak |
İzin reddedildi/yasaklandı (arayan biliniyor ve reddedildi). Bu yanıt, bir kaynağın tükenmesinden kaynaklanan retler için kullanılmamalıdır (bu hatalar için Too Many Requests değerini kullanın).
Arayan tanımlanamıyorsa Forbidden kullanılmamalıdır (bu tür hatalar için bunun yerine Unauthorized kullanın). |
404 |
Bulunamadı |
Bulunamadı (Kaynak bulunamadı, geçersiz RPC'ler dahil olmak üzere geçersiz URL) |
409 |
Gelişme |
İşlem, genellikle sıralayıcı kontrolü hatası veya işlem iptal etme gibi bir eşzamanlılık sorunu nedeniyle iptal edildi. |
429 |
Çok Fazla İstek Var |
Kullanıcı başına kota gibi bir kaynak tükendi veya dosya sisteminin tamamında yer kalmadı. |
499 |
İstemci Kapalı İsteği |
İşlem genellikle arayan tarafından iptal edildi. |
500 |
Dahili Sunucu Hatası |
Dahili hatalar. Bu, temel sistem tarafından beklenen bazı değişmezlerin bozulduğu anlamına gelir. Bu hata kodu ciddi hatalar için ayrılmıştır. |
501 |
Uygulanmadı |
İşlem bu hizmette uygulanmıyor veya desteklenmiyor/etkinleştirilmiyor. |
503 |
Hizmet Kullanılamıyor |
Hizmet şu anda kullanılamıyor. Bu durum büyük olasılıkla geçicidir ve geri çekilmeyle yeniden deneyerek düzeltilebilir. |
504 |
Ağ Geçidi Zaman Aşımı |
İşlem tamamlanmadan son tarih doldu. Sistemin durumunu değiştiren işlemler için, işlem başarıyla tamamlanmış olsa bile bu hata döndürülebilir. Örneğin, bir sunucudan gelen başarılı yanıt, son tarihin dolmasına yetecek kadar gecikmiş olabilir. |
Bazen birden fazla hata kodu geçerli olabilir. Hizmetler, geçerli olan en spesifik hata kodunu döndürmelidir.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 UTC."],[[["\u003cp\u003eHTTP status codes indicate the outcome of a request, ranging from success (2xx) to various error types.\u003c/p\u003e\n"],["\u003cp\u003eClient errors (4xx) signal issues with the request itself, such as invalid credentials (401) or missing resources (404).\u003c/p\u003e\n"],["\u003cp\u003eServer errors (5xx) indicate problems on the server side, including internal errors (500) or service unavailability (503).\u003c/p\u003e\n"],["\u003cp\u003eWhen multiple error codes apply, the most specific one should be used.\u003c/p\u003e\n"],["\u003cp\u003eBusiness logic failures, despite not being technical errors, should utilize a 2xx status code with further details provided in the response body.\u003c/p\u003e\n"]]],["HTTP responses can include various status codes: 2xx signifies success, used even for business logic failures. 400 indicates bad requests, 401 for unauthorized access, and 403 for forbidden actions. 404 means resource not found, 409 a conflict, and 429 too many requests. 499 denotes client-canceled operation, 500 internal errors, 501 unimplemented features, 503 service unavailability, and 504 gateway timeout. The most specific error code should be used when multiple codes apply.\n"],null,["# Status Response Codes\n\nThe following status codes can be returned in HTTP responses.\n\n| HTTP Code | HTTP Description | Notes |\n|-----------|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 2xx | OK | Not an error; returned on success. This should also be used for business logic failures (e.g. `booking_failure` in [`CreateBookingResponse`](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-methods/createbooking-method) is populated) |\n| 400 | Bad Request | Bad Request/Invalid Arguments (merchant, service, slot not found, trying to book an invalid slot, cancelling a booking that never existed). |\n| 401 | Unauthorized | Unauthenticated (invalid credentials, retry login). The request does not have valid authentication credentials for the operation. |\n| 403 | Forbidden | Permission denied/forbidden (caller is known and rejected). This response must not be used for rejections caused by exhausting some resource (use `Too Many Requests` instead for those errors). `Forbidden` must not be used if the caller can not be identified (use `Unauthorized` instead for those errors). |\n| 404 | Not Found | Not found (Resource not found, invalid url, including invalid RPCs) |\n| 409 | Conflict | The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort. |\n| 429 | Too Many Requests | Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. |\n| 499 | Client Closed Request | The operation was cancelled, typically by the caller. |\n| 500 | Internal Server Error | Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors. |\n| 501 | Not Implemented | The operation is not implemented or is not supported/enabled in this service. |\n| 503 | Service Unavailable | The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff. |\n| 504 | Gateway Timeout | The deadline expired before the operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. |\n\nSometimes multiple error codes may apply. Services should return the most\nspecific error code that applies."]]