Loona Automation logoLoona Developer Tools
Home › संदर्भ

HTTP Status Codes Reference

संक्षेप में: सभी status codes जो daily development में मायने रखते हैं — हर एक का अर्थ, कब उपयोग होता है, और traps (401 vs 403, 302 vs 307) — जैसे आप type करते हैं filterable।
🔒 Design से निजी: सब कुछ इस device पर आपके browser में चलता है। आपका input कभी server पर upload नहीं होता।
CodeNameअर्थ
100जारी रखेंClient को request body के साथ जारी रखना चाहिए
101Switching ProtocolsProtocol upgrade स्वीकार किया गया (जैसे WebSocket पर)
200OKRequest सफल हुई — default success response
201बनाया गयाएक नया resource बनाया गया (आम POST सफलता)
202स्वीकृतAsync processing के लिए queued, अभी पूरा नहीं
204No Contentजानबूझकर खाली body के साथ success
301Moved PermanentlyResource का एक नया permanent URL है — links update करें; SEO equity transfer होती है
302मिलाTemporary redirect (ऐतिहासिक रूप से misused; 303/307 देखें)
303See Otherदूसरे URL पर GET पर redirect (post/redirect/get)
304Not ModifiedCached copy अब भी valid है — ETag/Last-Modified के ज़रिए revalidate करें
307Temporary RedirectMethod और body सुरक्षित रखने वाला temporary redirect
308Permanent RedirectMethod और body सुरक्षित रखने वाला permanent redirect
400Bad RequestServer request को parse/समझ नहीं सकता
401UnauthorizedAuthentication आवश्यक है या विफल हुआ (नाम के बावजूद, इसका मतलब है unauthenticated)
403ForbiddenAuthenticated हो या न हो, पहुँच अस्वीकृत है
404Not Foundइस URL पर कोई resource नहीं
405Method Not Allowedइस resource के लिए HTTP method supported नहीं है
406Not Acceptableकोई representation Accept headers से match नहीं करती
408Request TimeoutClient ने request भेजने में बहुत देर ली
409ConflictState conflict, जैसे edit collision या duplicate creation
410Goneस्थायी रूप से हटाया गया (404 से मज़बूत — जानबूझकर उपयोग होता है)
411Length RequiredContent-Length header ज़रूरी है
413Content बहुत बड़ा हैRequest body server limits से ज़्यादा है
414URI Too LongURL server limits से ज़्यादा है
415Unsupported Media TypeRequest Content-Type supported नहीं है
418I'm a TeapotRFC 2324 joke code, कभी-कभी coffee बनाने से इनकार करने के लिए उपयोग होता है
422Unprocessable ContentSyntax ठीक है लेकिन semantics validation में fail होते हैं (APIs को यह पसंद है)
425Too EarlyServer संभवतः replayed request को process करने के लिए तैयार नहीं
429Too Many RequestsRate limit hit — पीछे हटें, Retry-After का सम्मान करें
500Internal Server ErrorGeneric server-side विफलता
501Not ImplementedServer functionality को support नहीं करता
502Bad GatewayProxy/gateway को upstream से invalid response मिला
503Service UnavailableOverloaded या maintenance के लिए down — अक्सर अस्थायी, Retry-After रख सकता है
504Gateway TimeoutProxy/gateway upstream का इंतज़ार करते हुए timed out हो गया
505HTTP Version Not SupportedRequest में HTTP version supported नहीं है

हमारे बारे में

Status codes हर response का server का one-number summary हैं, class के अनुसार grouped: 1xx informational, 2xx success, 3xx redirection, 4xx client ने ग़लती की, 5xx server ने ग़लती की। Table वे codes देती है जिनसे working developers सच में मिलते हैं, उन nuances के साथ जो practice में मायने रखती हैं — 401 का अर्थ इसके नाम के बावजूद unauthenticated है, 403 login के बावजूद एक इनकार है, 422 API validation failure है, 429 backoff माँगता है। Listed नहीं किए गए codes (1xx और experimental codes की लंबी tail) इतने rare हैं कि सिर्फ़ class आपको बताती है कि उन्हें कैसे handle करें।

अक्सर पूछे जाने वाले सवाल

401 और 403 के बीच क्या अंतर है?

401: हमें नहीं पता कि आप कौन हैं (authenticate करें)। 403: हम जानते हैं, और फिर भी आपको अनुमति नहीं है।

अस्थायी redirect के लिए 302 या 307?

307 method और body को सुरक्षित रखता है; 302 ऐतिहासिक रूप से clients को POST से GET पर switch करने देता था। नए काम में 307 उपयोग करना चाहिए (या permanent के लिए 308)।

संबंधित Developer Tools

इस tool को अपनी website पर embed करें — मुफ़्त

इस tool को अपनी website या blog पर जोड़ें — यह पूरी तरह मुफ़्त है, कोई साइन-अप नहीं चाहिए, और हमेशा latest version दिखाता है। नीचे का code copy करें और अपनी page पर वहाँ paste करें जहाँ आप tool को दिखाना चाहते हैं। Embed के नीचे छोटी “Powered by Loona Automation” credit line रखना इस tool को मुफ़्त रखने में मदद करता है — लेकिन आप इसे style या remove करने के लिए स्वतंत्र हैं; tool किसी भी तरह काम करता है।