स्टेटस रिस्पॉन्स कोड
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
एचटीटीपी रिस्पॉन्स में ये स्टेटस कोड दिखाए जा सकते हैं.
एचटीटीपी कोड |
एचटीटीपी के बारे में जानकारी |
नोट |
2xx |
ठीक है |
गड़बड़ी नहीं है; सफल होने पर दिखता है. इसका इस्तेमाल, कारोबार के लॉजिक में होने वाली गड़बड़ियों के लिए भी किया जाना चाहिए (उदाहरण के लिए, CreateBookingResponse में booking_failure सेट है) |
400 |
गलत अनुरोध |
गलत अनुरोध/अमान्य आर्ग्युमेंट (व्यापारी/कंपनी, सेवा, स्लॉट नहीं मिला,
अमान्य स्लॉट बुक करने की कोशिश की जा रही है, ऐसी बुकिंग रद्द की जा रही है जो कभी
हुई ही नहीं). |
401 |
अनधिकृत |
पुष्टि नहीं की गई (अमान्य क्रेडेंशियल, लॉगिन करने की कोशिश करें). अनुरोध में,
कार्रवाई के लिए पुष्टि करने के मान्य क्रेडेंशियल नहीं हैं. |
403 |
अनुमति नहीं है |
अनुमति नहीं दी गई/पाबंदी है (कॉल करने वाले की पहचान है और कॉल अस्वीकार किया गया है). इस रिस्पॉन्स का इस्तेमाल, किसी संसाधन के खत्म होने की वजह से अस्वीकार किए गए अनुरोधों के लिए नहीं किया जाना चाहिए. इसके बजाय, उन गड़बड़ियों के लिए Too Many Requests का इस्तेमाल करें.
अगर कॉल करने वाले की पहचान नहीं की जा सकती, तो Forbidden का इस्तेमाल नहीं किया जाना चाहिए. ऐसी गड़बड़ियों के लिए, Unauthorized का इस्तेमाल करें. |
404 |
नहीं मिला |
नहीं मिला (संसाधन नहीं मिला, अमान्य यूआरएल, अमान्य आरपीसी शामिल हैं) |
409 |
कॉन्फ़्लिक्ट |
आम तौर पर, एक साथ कई काम करने से जुड़ी समस्या की वजह से कार्रवाई रोक दी गई थी. जैसे, क्रम से चलने वाले प्रोसेस की जांच न हो पाना या लेन-देन रोकना. |
429 |
कई बार मांग की गई |
कोई रिसॉर्स खत्म हो गया है. हो सकता है कि यह हर उपयोगकर्ता के लिए तय कोटा हो या फिर
पूरे फ़ाइल सिस्टम में जगह न हो. |
499 |
क्लाइंट के ज़रिए पूरा किया गया अनुरोध |
कार्रवाई रद्द कर दी गई थी. आम तौर पर, कॉल करने वाले ने ऐसा किया था. |
500 |
आंतरिक सर्वर गड़बड़ी |
अंदरूनी गड़बड़ियां. इसका मतलब है कि मौजूदा सिस्टम के लिए, कुछ ऐसे इनवैरिएंट नहीं हैं जिनकी उम्मीद की जाती है. गड़बड़ी का यह कोड,
गंभीर गड़बड़ियों के लिए है. |
501 |
लागू नहीं किया गया |
यह कार्रवाई लागू नहीं की गई है या इस सेवा में काम नहीं करती/चालू नहीं है. |
503 |
सेवा उपलब्ध नहीं है |
फ़िलहाल, सेवा उपलब्ध नहीं है. ज़्यादातर मामलों में, यह एक अस्थायी स्थिति होती है. इसे ठीक करने के लिए, बैकऑफ़ की मदद से फिर से कोशिश करें. |
504 |
गेटवे का टाइम आउट |
कार्रवाई पूरी होने से पहले ही समयसीमा खत्म हो गई. सिस्टम की स्थिति में बदलाव करने वाली कार्रवाइयों के लिए, यह गड़बड़ी तब भी दिख सकती है, जब कार्रवाई पूरी हो चुकी हो. उदाहरण के लिए,
किसी सर्वर से जवाब मिलने में इतना समय लग सकता है कि समयसीमा खत्म हो जाए. |
कभी-कभी एक से ज़्यादा गड़बड़ी कोड लागू हो सकते हैं. सेवाओं को सबसे सटीक गड़बड़ी कोड दिखाना चाहिए.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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."]]