HTTP स्टेटस कोड
विवरण के साथ HTTP स्टेटस कोड की संदर्भ मार्गदर्शिका। मुफ़्त, तेज़ और पूरी तरह आपके ब्राउज़र में काम करता है, बिना साइन-अप के।
अपडेट किया गया
HTTP Status Codes
Complete reference of all HTTP status codes — search, filter by category, view mnemonics, compare similar codes, troubleshooting guides, REST best practices, RFC references, and header examples.
Continue
The server has received the request headers and the client should proceed to send the request body.
"100 Continue" — server says "keep going, I'm listening"
Switching Protocols
The server is switching protocols as requested by the client (e.g., upgrading to WebSocket).
"101" — one protocol becomes another
Processing
The server has received and is processing the request, but no response is available yet.
"102" — still chewing, haven't swallowed yet
Early Hints
Used to return some response headers before the final HTTP message, allowing resource preloading.
"103 Early Hints" — the server sends you a shopping list before the store opens
OK
The request was successful. The meaning depends on the HTTP method used.
"200 OK" — everything's fine, here's your data
Created
The request was successful and a new resource was created as a result.
"201 Created" — a new resource was born
Accepted
The request has been accepted for processing, but the processing has not been completed.
"202 Accepted" — your ticket is in the queue
No Content
The server has successfully processed the request but is not returning any content.
"204 No Content" — done, nothing to show
Partial Content
The server is delivering only part of the resource in response to a Range request.
"206 Partial" — only part of the file, just what you asked for
Multi-Status
A Multi-Status response conveys information about multiple resources in situations where multiple status codes might be appropriate.
"207 Multi-Status" — here are everyone's individual results
Moved Permanently
The URL of the requested resource has been changed permanently. The new URL is given in the response.
"301 Moved Permanently" — I've moved and given you my new forwarding address
Found
The URI of the requested resource has been changed temporarily.
"302 Found" — it's temporarily over there
See Other
The server is redirecting the user agent to a different resource, as indicated by the Location header.
"303 See Other" — go look at that other page via GET
Not Modified
There is no need to retransmit the requested resources. The client can use cached data.
"304 Not Modified" — nothing changed, use your cache
Temporary Redirect
The server sends this response to direct the client to get the requested resource at another URI with the same method.
"307" — temporary detour, same vehicle (method)
Permanent Redirect
The resource is now permanently located at another URI. Method is preserved unlike 301.
"308" — permanently moved AND method preserved
Bad Request
The server cannot or will not process the request due to something perceived to be a client error.
"400 Bad Request" — you sent gibberish
Unauthorized
The request lacks valid authentication credentials for the target resource.
"401 Unauthorized" — show me your ID
Forbidden
The server understood the request but refuses to authorize it.
"403 Forbidden" — I know who you are, but you can't come in
Not Found
The server cannot find the requested resource. The URL is not recognized.
"404 Not Found" — this page does not exist
Method Not Allowed
The request method is known by the server but is not supported by the target resource.
"405 Method Not Allowed" — you're knocking on the wrong door type
Request Timeout
The server would like to shut down this unused connection. Sent when server times out waiting for client.
"408" — you took too long to finish your sentence
Conflict
The request could not be completed due to a conflict with the current state of the target resource.
"409 Conflict" — two things are fighting over the same space
Gone
The target resource is no longer available at the origin server and this condition is likely to be permanent.
"410 Gone" — it existed once, but it's gone forever
Precondition Failed
The server does not meet one of the preconditions in the request header fields.
"412" — the conditions you set weren't met
Content Too Large
The request entity is larger than limits defined by server.
"413 Too Large" — your suitcase is too big for the overhead bin
URI Too Long
The URI requested by the client is longer than the server is willing to interpret.
"414 URI Too Long" — your address label is a novel
Unsupported Media Type
The media format of the requested data is not supported by the server.
"415 Unsupported Media Type" — I don't speak that language
Unprocessable Entity
The request was well-formed but was unable to be followed due to semantic errors.
"422" — grammatically correct but logically wrong
Locked
The resource that is being accessed is locked.
"423 Locked" — someone else has checked this out
Failed Dependency
The method could not be performed on the resource because the requested action depended on another action and that action failed.
"424" — the domino that came before you fell
Too Early
Indicates that the server is unwilling to risk processing a request that might be replayed.
"425 Too Early" — not yet, the security handshake isn't done
Upgrade Required
The server refuses to perform the request using the current protocol but might after an upgrade.
"426" — you need a better version to enter
Precondition Required
The origin server requires the request to be conditional.
"428" — you need to show conditions before we proceed
Too Many Requests
The user has sent too many requests in a given amount of time (rate limiting).
"429 Too Many" — slow down, you're flooding us
Request Header Fields Too Large
The server is unwilling to process the request because its header fields are too large.
"431" — your luggage has too many labels on it
Unavailable For Legal Reasons
The user-agent requested a resource that cannot legally be provided.
"451" — reference to Fahrenheit 451, the book about censorship
Internal Server Error
The server has encountered a situation it doesn't know how to handle.
"500" — something exploded in the engine room
Not Implemented
The request method is not supported by the server and cannot be handled.
"501" — feature not built yet
Bad Gateway
The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
"502 Bad Gateway" — the middleman got a bad answer
Service Unavailable
The server is not ready to handle the request. Common causes: maintenance or overload.
"503 Service Unavailable" — closed for maintenance, back soon
Gateway Timeout
The server is acting as a gateway and cannot get a response in time from the upstream server.
"504 Gateway Timeout" — the upstream server went radio silent
HTTP Version Not Supported
The HTTP version used in the request is not supported by the server.
"505" — incompatible versions
Variant Also Negotiates
The server has an internal configuration error: transparent content negotiation results in a circular reference.
"506" — the signpost points to another signpost
Insufficient Storage
The server is unable to store the representation needed to complete the request.
"507" — the hard drive is full
Loop Detected
The server detected an infinite loop while processing the request.
"508" — the snake is eating its own tail
Not Extended
Further extensions to the request are required for the server to fulfill it.
"510" — you need extra plugins installed
Network Authentication Required
The client needs to authenticate to gain network access (captive portal).
"511" — you need to log into the WiFi first
Client Closed Request
A non-standard code used by nginx to indicate that the client closed the connection before the server answered.
"499" — client hung up mid-sentence (nginx-specific)
Web Server Returns Unknown Error
Cloudflare-specific. The origin server returned an unexpected response.
"520" — Cloudflare has no idea what your server said
Web Server Is Down
Cloudflare-specific. The origin server refused connections.
"521" — Cloudflare knocked, nobody home
Connection Timed Out
Cloudflare-specific. Cloudflare timed out contacting the origin server.
"522" — Cloudflare waited too long
A Timeout Occurred
Cloudflare-specific. Cloudflare established a TCP connection but the origin did not send a response in time.
"524" — Cloudflare waited, origin stayed silent
Related Tools
अक्सर पूछे जाने वाले प्रश्न
401 और 403 स्टेटस कोड में क्या अंतर है?
दोनों एक्सेस से संबंधित 4xx क्लाइंट एरर दर्शाते हैं, लेकिन इनका मतलब अलग होता है। 401 Unauthorized का मतलब है कि आप प्रमाणित नहीं हैं: सर्वर को नहीं पता कि आप कौन हैं, इसलिए आपको मान्य क्रेडेंशियल्स, जैसे लॉगिन टोकन या API key, भेजने चाहिए और फिर से प्रयास करना चाहिए। 403 Forbidden का मतलब है कि आप प्रमाणित हैं लेकिन अनुमति नहीं है: सर्वर जानता है कि आप कौन हैं और जानबूझकर इंकार कर रहा है, इसलिए क्रेडेंशियल्स फिर से भेजने से कोई फ़ायदा नहीं होगा — आपको अलग अनुमतियाँ या रोल बदलाव चाहिए। गलत कोड रिटर्न करना क्लाइंट्स को भ्रमित करता है, क्योंकि 401 लॉगिन के साथ फिर से प्रयास करने का निमंत्रण देता है जबकि 403 उन्हें रुकने को कहता है। इस रेफ़रेंस में एक समर्पित तुलना दृश्य है जो इन समान-दिखने वाले कोड्स को एक साथ रखता है। ऊपर 401 या 403 सर्च करें और प्रत्येक कोड के कारण और समाधान पूरी तरह पढ़ें।
मुझे 301 redirect का उपयोग कब करना चाहिए और 308 कब?
301 Moved Permanently और 308 Permanent Redirect दोनों क्लाइंट्स को बताते हैं कि एक रिसोर्स स्थायी रूप से स्थानांतरित हो गया है और उन्हें बुकमार्क और लिंक अपडेट करने चाहिए। मुख्य अंतर मेथड हैंडलिंग है। 301 के साथ, कुछ क्लाइंट्स redirect का अनुसरण करते समय POST को GET में बदल सकते हैं, जिससे चुपचाप रिक्वेस्ट बॉडी छूट सकती है। 308 मूल मेथड और बॉडी को सुरक्षित रखता है, जो इसे API माइग्रेशन और किसी भी non-GET रिक्वेस्ट के लिए सुरक्षित विकल्प बनाता है। साधारण पेज मूव्स के लिए जिनका सर्च इंजनों को पालन करना चाहिए, 301 अच्छी तरह से समझा गया डिफ़ॉल्ट बना हुआ है और रैंकिंग सिग्नल पास करता है। गलत चुनने से फ़ॉर्म सबमिशन टूट सकते हैं या लिंक इक्विटी खो सकती है। यह रेफ़रेंस दोनों कोड्स को उदाहरण रिस्पॉन्स के साथ सूचीबद्ध करता है। ऊपर 301 या 308 सर्च करें, या तुलना दृश्य खोलें ताकि इन्हें सीधे तौर पर कंट्रास्ट किया जा सके।
सर्वर 504 के बजाय 502 क्यों रिटर्न करता है?
दोनों 5xx सर्वर एरर हैं जिनमें आपके एप्लिकेशन के आगे एक गेटवे या रिवर्स प्रॉक्सी, जैसे nginx या Cloudflare, शामिल होता है, लेकिन ये अलग विफलताओं का वर्णन करते हैं। 502 Bad Gateway का मतलब है कि प्रॉक्सी ने अपस्ट्रीम सर्वर तक पहुँच तो बनाई लेकिन उसे अमान्य या खाली रिस्पॉन्स मिला — अक्सर बैकएंड क्रैश हो गया, कचरा रिटर्न किया, या कनेक्शन बंद कर दिया। 504 Gateway Timeout का मतलब है कि प्रॉक्सी ने अपस्ट्रीम तक पहुँच बनाई लेकिन अपस्ट्रीम को जवाब देने में बहुत ज़्यादा समय लगा, इसलिए प्रॉक्सी ने इंतज़ार करना छोड़ दिया। व्यावहारिक संकेत: 502 आम तौर पर एक टूटे या डाउन बैकएंड की ओर इशारा करता है, जबकि 504 एक धीमे बैकएंड की ओर, इसलिए आप क्रैश बनाम लेटेंसी और टाइमआउट लिमिट की जाँच करते हैं। यह रेफ़रेंस दोनों को सामान्य कारणों और समाधान के साथ कैटलॉग करता है। ऊपर 502 या 504 सर्च करें और प्रत्येक को विस्तार से पढ़ें।
404 और 410 स्टेटस कोड में क्या अंतर है?
404 Not Found का मतलब है कि रिसोर्स अभी वहाँ नहीं है, लेकिन सर्वर भविष्य के बारे में कोई वादा नहीं करता — यह बाद में लौट सकता है, इसलिए क्लाइंट्स और सर्च इंजन जाँच करते रहते हैं। 410 Gone एक मज़बूत, जानबूझकर दिया गया सिग्नल है: रिसोर्स को जानबूझकर और स्थायी रूप से हटाया गया है और वह वापस नहीं आएगा। SEO के लिए यह मायने रखता है, क्योंकि 410 सर्च इंजनों को URL का अनुरोध करना बंद करने और इसे जल्दी डी-इंडेक्स करने को कहता है, जबकि 404 दरवाज़ा खुला रखता है। 410 का उपयोग तब करें जब आपने जानबूझकर कोई पेज, एक्स्पायर्ड कैंपेन, या डिलीट किए गए कंटेंट को रिटायर किया है; टाइपो और वास्तव में ग़ायब रिसोर्स के लिए 404 का उपयोग करें। सही रिटर्न करने से क्रॉल बजट और लॉग साफ़ रहते हैं। यह रेफ़रेंस दोनों कोड्स को समझाता है और उन्हें अपने तुलना दृश्य में जोड़ता है। ऊपर 404 या 410 सर्च करें और पूरी जानकारी पढ़ें।
पाँच HTTP स्टेटस कोड श्रेणियों का क्या मतलब है?
हर HTTP रिस्पॉन्स कोड पाँच परिवारों में से एक में आता है, जो उसके पहले अंक द्वारा संकेतित होता है। 1xx Informational का मतलब है कि रिक्वेस्ट प्राप्त हुआ और प्रोसेसिंग जारी है, जैसे 100 Continue। 2xx Success का मतलब है कि रिक्वेस्ट समझा गया और स्वीकार किया गया, जिसमें 200 OK डिफ़ॉल्ट है और 201 Created या 204 No Content विशिष्ट मामलों के लिए। 3xx Redirection का मतलब है कि और कार्रवाई की ज़रूरत है, आम तौर पर एक Location header का अनुसरण करते हुए, जैसे 301 और 302। 4xx Client Error का मतलब है कि रिक्वेस्ट में गड़बड़ थी — खराब सिंटैक्स, क्रेडेंशियल्स की कमी, या 404 जैसा ग़ायब रिसोर्स। 5xx Server Error का मतलब है कि सर्वर एक मान्य रिक्वेस्स पूरा करने में विफल रहा, 500 Internal Server Error से लेकर गेटवे समस्याओं तक। परिवार जानने से आप तुरंत बता सकते हैं कि समस्या क्लाइंट पर है या सर्वर पर। ऊपर किसी भी श्रेणी को ब्राउज़ करें ताकि आप उसके कोड्स को आउटेज में आने से पहले जान सकें।
संबंधित टूल
मुफ़्त सुरक्षित पासवर्ड जनरेटर
अनुकूलन योग्य विकल्पों के साथ सुरक्षित, यादृच्छिक पासवर्ड बनाएं। मुफ़्त, तेज़ और पूरी तरह आपके ब्राउज़र में काम करता है, बिना साइन-अप के।
मुफ़्त UUID/GUID जनरेटर
सार्वभौमिक रूप से अद्वितीय पहचानकर्ता (UUID/GUID) बनाएं। मुफ़्त, तेज़ और पूरी तरह आपके ब्राउज़र में काम करता है, बिना साइन-अप के।
मुफ़्त QR कोड जनरेटर ऑनलाइन
URL, टेक्स्ट, WiFi क्रेडेंशियल और बहुत कुछ के लिए QR कोड बनाएं। मुफ़्त, तेज़ और पूरी तरह आपके ब्राउज़र में काम करता है, बिना साइन-अप के।
मुफ़्त JSON फ़ॉर्मेटर और वैलिडेटर
सिंटैक्स हाइलाइटिंग और त्रुटि पहचान के साथ JSON डेटा को फ़ॉर्मेट, सत्यापित और सुंदर बनाएं। मुफ़्त, तेज़ और पूरी तरह आपके ब्राउज़र में काम करता है, बिना साइन-अप के।
HTTP Status Codes Reference के बारे में
HTTP स्टेटस कोड वे तीन-अंकीय संख्याएँ हैं जो एक सर्वर हर वेब रिस्पॉन्स के साथ रिटर्न करता है यह बताने के लिए कि क्या हुआ — पेज लोड हुआ, रीडायरेक्ट हुआ, अस्वीकार किया गया, या क्रैश हो गया। यह रेफ़रेंस हर कोड जो आपको मिलने की संभावना है उसे एक सर्च करने योग्य जगह पर रखता है, सादे-भाषा स्पष्टीकरण, वास्तविक उदाहरण रिस्पॉन्स, सामान्य कारणों और समाधान के नोट्स के साथ। यह डेवलपर्स, API डिज़ाइनर्स, DevOps इंजीनियर्स और हर उस व्यक्ति के लिए बना है जो किसी रिक्वेस्ट को डीबग कर रहा है और जानना चाहता है कि एक 403, 502, या 308 का वास्तव में क्या मतलब है और इसके बारे में क्या करना चाहिए।
यह रेफ़रेंस 50 से ज़्यादा स्टेटस कोड्स को पाँच आधिकारिक परिवारों में विभाजित करता है, जिनमें WebDAV एक्सटेंशन और कुछ अनआधिकारिक वेंडर कोड्स (जैसे Cloudflare के 520–524) शामिल हैं जो आपको प्रोडक्शन लॉग्स में दिखेंगे लेकिन RFCs में नहीं मिलेंगे। टूल का ज़्यादातर हिस्सा बिना साइन-अप के पूरी तरह आपके ब्राउज़र में चलता है। एक अपवाद वैकल्पिक URL Status Tester है, जो आपके द्वारा दर्ज किए गए पते को उसका लाइव स्टेटस फ़ेच करने के लिए एक सार्वजनिक CORS प्रॉक्सी के माध्यम से भेजता है — इसलिए उस सुविधा का उपयोग केवल उन URLs के लिए करें जिन्हें आप तीसरी पार्टी के माध्यम से रूट करने में सहज हैं।
पाँच स्टेटस कोड श्रेणियाँ
हर HTTP रिस्पॉन्स कोड पाँच रेंज में से एक में आता है, जो उसके पहले अंक द्वारा संकेतित होता है:
- 1xx Informational — रिक्वेस्ट प्राप्त हुई और प्रक्रिया जारी है (जैसे
100 Continue,101 Switching Protocols)। - 2xx Success — रिक्वेस्ट प्राप्त, समझी और स्वीकृत हुई।
200 OKडिफ़ॉल्ट है;201 Createdएक सफल POST के बाद आता है, और204 No Contentएक DELETE के बाद आम है। - 3xx Redirection — रिक्वेस्ट पूरा करने के लिए और कार्रवाई चाहिए, आम तौर पर एक
Locationheader का अनुसरण।301स्थायी मूव है;302और307अस्थायी हैं। - 4xx Client Error — रिक्वेस्ट ग़लत थी: खराब सिंटैक्स (
400), क्रेडेंशियल्स की कमी (401), अपर्याप्त अनुमति (403), या ग़ायब रिसोर्स (404)। - 5xx Server Error — सर्वर एक मान्य रिक्वेस्ट पूरा करने में विफल रहा, एक सामान्य
500 Internal Server Errorसे लेकर502और504जैसी गेटवे समस्याओं तक।
प्रत्येक एंट्री आपको क्या देती है
नंबर या कीवर्ड से सर्च करें और किसी भी कोड को क्लिक करके उसका पूरा विवरण खोलें। हर स्टेटस के लिए आपको एक स्पष्ट विवरण, एक वास्तविक-दुनिया यूज़ केस, एक उदाहरण HTTP रिस्पॉन्स या JSON बॉडी, सामान्य कारणों की एक सूची, और व्यावहारिक समाधान कदम मिलते हैं जहाँ कोड समस्या संकेत करता है। कई एंट्रीज़ शासी RFC सेक्शन भी उद्धृत करती हैं और संबंधित कोड्स से लिंक करती हैं। आप एक श्रेणी तक फ़िल्टर कर सकते हैं, अपने सबसे ज़्यादा रेफ़र किए जाने वाले कोड्स पिन कर सकते हैं, या केवल WebDAV और अनआधिकारिक एंट्रीज़ अलग कर सकते हैं। एक प्रिंट करने योग्य Quick Reference दृश्य पूरे सेट को एक चीट शीट में संक्षिप्त करता है।
उन कोड्स को सुलझाना जिन्हें लोग भ्रमित करते हैं
कुछ स्टेटस कोड्स विनिमेय दिखते हैं लेकिन बहुत अलग मतलब रखते हैं, और गलत चुनना क्लाइंट्स, ब्राउज़र्स और सर्च इंजनों को गलत सिग्नल भेजता है। एक समर्पित तुलना दृश्य समान-दिखने वाले कोड्स को साइड-बाय-साइड रखता है:
- 401 vs 403 —
401का मतलब है प्रमाणित नहीं (मान्य क्रेडेंशियल्स भेजें);403का मतलब है प्रमाणित लेकिन अनुमति नहीं (फिर से प्रमाणित करने से फ़ायदा नहीं)। - 301 vs 308 — दोनों स्थायी रीडायरेक्ट हैं, लेकिन
301एक POST को GET बनने दे सकता है, जबकि308मूल मेथड सुरक्षित रखता है, जो इसे API माइग्रेशन के लिए सुरक्षित बनाता है। - 400 vs 422 —
400एक सिंटैक्स-लेवल समस्या है (खराब JSON);422का मतलब है कि JSON मान्य है लेकिन एक बिज़नेस नियम विफल होता है, जैसे खराब फ़ॉर्मैट वाला ईमेल। - 404 vs 410 —
404का मतलब है नहीं मिला, शायद बाद में;410 Goneका मतलब है जानबूझकर और स्थायी रूप से हटाया गया, अनुरोध बंद करने और डी-इंडेक्स करने का एक मज़बूत सिग्नल। - 502 vs 504 —
502 Bad Gatewayएक खराब अपस्ट्रीम रिस्पॉन्स है;504 Gateway Timeoutका मतलब है कि अपस्ट्रीम को बहुत ज़्यादा समय लगा।
ऊपर सर्च बॉक्स का उपयोग किसी भी कोड पर सीधे जाने के लिए करें, या आउटेज में आपको इसकी ज़रूरत से पहले एक परिवार सीखने के लिए एक श्रेणी ब्राउज़ करें।