HTTP स्टेटस कोड संदर्भ - पूर्ण HTTP रिस्पॉन्स कोड सूची ऑनलाइन
सभी HTTP स्टेटस कोड (1xx-5xx) को विवरण, उपयोग मामलों और प्रतिक्रिया उदाहरणों के साथ खोजें, फ़िल्टर करें और कॉपी करें। इंटरैक्टिव संदर्भ — 100% क्लाइंट-साइड, सर्वर पर कोई डेटा नहीं भेजा जाता।
61 स्टेटस कोड मिले
The server is switching protocols as requested by the client.
The server has received and is processing the request, but no response is available yet.
Used to return response headers before the final HTTP message.
The request succeeded.
The request succeeded and a new resource was created.
The request has been accepted for processing, but processing is not complete.
The returned metadata is not exactly the same as available from the origin server.
The server successfully processed the request but is not returning any content.
The server successfully processed the request and asks the client to reset the document view.
The server is delivering only part of the resource due to a range header sent by the client.
The message body contains multiple status codes for different operations.
The members of a DAV binding have already been enumerated in a previous reply.
The server has fulfilled a GET request for the resource with instance manipulations applied.
The request has more than one possible response.
The URL of the requested resource has been changed permanently.
The URI of requested resource has been changed temporarily.
The server sent this response to direct the client to get the requested resource at another URI with a GET request.
The resource has not been modified since the version specified by the request headers.
The server sends this response to redirect the client, guaranteeing the same HTTP method will be used.
The resource has been permanently moved, and the same HTTP method must be used.
The server cannot process the request due to something perceived to be a client error.
The client must authenticate itself to get the requested response.
Reserved for future use. Originally created for digital payment systems.
The client does not have access rights to the content.
The server cannot find the requested resource.
The request method is known by the server but is not supported by the target resource.
The server cannot produce a response matching the list of acceptable values defined in the request headers.
The client must first authenticate itself with the proxy.
The server timed out waiting for the request.
The request conflicts with the current state of the server.
The content has been permanently deleted from the server with no forwarding address.
The server rejects the request because the Content-Length header field is not defined.
The client has indicated preconditions in its headers which the server does not meet.
The request entity is larger than limits defined by the server.
The URI requested by the client is longer than the server is willing to interpret.
The media format of the requested data is not supported by the server.
The range specified by the Range header field in the request cannot be fulfilled.
The expectation given in the Expect request header could not be met by the server.
The server refuses the attempt to brew coffee with a teapot.
The request was directed at a server that is not able to produce a response.
The request was well-formed but was unable to be followed due to semantic errors.
The resource that is being accessed is locked.
The request failed because it depended on another request that failed.
The server is unwilling to risk processing a request that might be replayed.
The server refuses to perform the request using the current protocol.
The origin server requires the request to be conditional.
The user has sent too many requests in a given amount of time (rate limiting).
The server is unwilling to process the request because its header fields are too large.
The user agent requested a resource that cannot legally be provided.
The server has encountered a situation it does not know how to handle.
The request method is not supported by the server and cannot be handled.
The server got an invalid response while working as a gateway.
The server is not ready to handle the request.
The server is acting as a gateway and cannot get a response in time.
The HTTP version used in the request is not supported by the server.
The server has an internal configuration error during content negotiation.
The server is unable to store the representation needed to complete the request.
The server detected an infinite loop while processing the request.
Further extensions to the request are required for the server to fulfill it.
The client needs to authenticate to gain network access.
अक्सर पूछे जाने वाले प्रश्न
HTTP स्टेटस कोड क्या हैं?
HTTP स्टेटस कोड तीन अंकों की संख्याएँ हैं जो एक वेब सर्वर द्वारा क्लाइंट के अनुरोध के जवाब में लौटाई जाती हैं। ये बताते हैं कि अनुरोध सफल हुआ, रीडायरेक्ट हुआ, या त्रुटि हुई। स्टेटस कोड पाँच वर्गों में विभाजित हैं: 1xx (सूचनात्मक), 2xx (सफलता), 3xx (रीडायरेक्शन), 4xx (क्लाइंट त्रुटि), और 5xx (सर्वर त्रुटि)। ये IETF द्वारा RFC 9110 में परिभाषित हैं और वेब के काम करने के लिए मूलभूत हैं।
मैं इस HTTP स्टेटस कोड संदर्भ उपकरण का उपयोग कैसे करूँ?
संबंधित कोड तुरंत खोजने के लिए खोज बार में स्टेटस कोड नंबर (जैसे, '404') या कीवर्ड (जैसे, 'not found' या 'redirect') दर्ज करें। आप 1xx-5xx बटनों का उपयोग करके श्रेणी के अनुसार फ़िल्टर भी कर सकते हैं। किसी भी स्टेटस कोड कार्ड पर क्लिक करके उसे विस्तारित करें और पूरा विवरण, सामान्य उपयोग का मामला, और कॉपी करने योग्य प्रतिक्रिया उदाहरण देखें। अपने प्रोजेक्ट के लिए कोड या स्निपेट जल्दी प्राप्त करने के लिए कॉपी बटन का उपयोग करें।
क्या मेरा डेटा सुरक्षित है? क्या कुछ सर्वर को भेजा जाता है?
यह उपकरण 100% क्लाइंट-साइड है। सभी HTTP स्टेटस कोड डेटा पृष्ठ में स्थिर रूप से एम्बेडेड है — कोई API कॉल नहीं, कोई सर्वर अनुरोध नहीं, और कोई डेटा संग्रह नहीं। आपकी खोज क्वेरी और इंटरैक्शन कभी भी आपके ब्राउज़र से बाहर नहीं जाते। प्रारंभिक पृष्ठ लोड के बाद उपकरण पूरी तरह से ऑफ़लाइन काम करता है।
401 Unauthorized और 403 Forbidden में क्या अंतर है?
401 Unauthorized का मतलब है कि अनुरोध में वैध प्रमाणीकरण प्रमाण-पत्र नहीं हैं — क्लाइंट ने स्वयं की पहचान नहीं की है। सर्वर कह रहा है 'मुझे नहीं पता आप कौन हैं; कृपया प्रमाणित करें।' 403 Forbidden का मतलब है कि सर्वर जानता है आप कौन हैं (आप प्रमाणित हो सकते हैं) लेकिन आपके पास संसाधन तक पहुँचने की अनुमति नहीं है। सर्वर कह रहा है 'मुझे पता है आप कौन हैं, लेकिन आपको अनुमति नहीं है।'
301 और 308 रीडायरेक्ट में क्या अंतर है?
दोनों स्थायी रीडायरेक्ट को इंगित करते हैं। 301 Moved Permanently रीडायरेक्ट पर HTTP मेथड को बदलने की अनुमति देता है (जैसे, POST GET बन सकता है)। 308 Permanent Redirect मूल HTTP मेथड को संरक्षित करता है। POST/PUT का उपयोग करने वाले API के लिए, 308 सुरक्षित विकल्प है। इसी तरह, 302 बनाम 307: 302 Found मेथड परिवर्तन की अनुमति देता है, जबकि 307 Temporary Redirect इसे संरक्षित करता है।
418 'I'm a teapot' स्टेटस कोड क्यों मौजूद है?
418 I'm a teapot को 1998 में अप्रैल फूल के मज़ाक के रूप में RFC 2324 में Hyper Text Coffee Pot Control Protocol (HTCPCP) के हिस्से के रूप में परिभाषित किया गया था। मानकों के दृष्टिकोण से यह वास्तविक HTTP स्टेटस कोड नहीं है, लेकिन इसे ईस्टर एग के रूप में व्यापक रूप से अपनाया गया है और कई HTTP लाइब्रेरी और फ्रेमवर्क द्वारा पहचाना जाता है। पूर्णता के लिए इसे इस संदर्भ में शामिल किया गया है।
WebDAV स्टेटस कोड क्या हैं?
WebDAV (Web Distributed Authoring and Versioning) HTTP का एक विस्तार है जो क्लाइंट को दूरस्थ वेब सामग्री लेखन करने की अनुमति देता है। यह 207 Multi-Status, 422 Unprocessable Content, 423 Locked, 424 Failed Dependency, 507 Insufficient Storage, और 508 Loop Detected जैसे अतिरिक्त स्टेटस कोड प्रस्तुत करता है। ये कोड RFC 4918 में परिभाषित हैं और आधुनिक REST API में सामान्य रूप से उपयोग किए जाते हैं (विशेष रूप से सत्यापन त्रुटियों के लिए 422)।
कोड उदाहरण
// HTTP Status Code lookup
const HTTP_STATUS_CATEGORIES = {
'1xx': 'Informational',
'2xx': 'Success',
'3xx': 'Redirection',
'4xx': 'Client Error',
'5xx': 'Server Error',
};
function getStatusCategory(code) {
if (code >= 100 && code < 200) return '1xx';
if (code >= 200 && code < 300) return '2xx';
if (code >= 300 && code < 400) return '3xx';
if (code >= 400 && code < 500) return '4xx';
if (code >= 500 && code < 600) return '5xx';
return 'Unknown';
}
const STATUS_CODES = {
200: 'OK',
201: 'Created',
204: 'No Content',
301: 'Moved Permanently',
302: 'Found',
304: 'Not Modified',
400: 'Bad Request',
401: 'Unauthorized',
403: 'Forbidden',
404: 'Not Found',
405: 'Method Not Allowed',
409: 'Conflict',
422: 'Unprocessable Content',
429: 'Too Many Requests',
500: 'Internal Server Error',
502: 'Bad Gateway',
503: 'Service Unavailable',
};
async function fetchWithStatusHandling(url, options = {}) {
try {
const response = await fetch(url, options);
const category = getStatusCategory(response.status);
switch (category) {
case '2xx':
if (response.status === 204) return { data: null, status: 204 };
return { data: await response.json(), status: response.status };
case '4xx':
const clientError = await response.json().catch(() => ({}));
throw {
status: response.status,
statusText: STATUS_CODES[response.status] || response.statusText,
message: clientError.message || `Client error: ${response.status}`,
isRetryable: response.status === 429,
retryAfter: response.headers.get('Retry-After'),
};
case '5xx':
throw {
status: response.status,
statusText: STATUS_CODES[response.status] || response.statusText,
message: `Server error: ${response.status}`,
isRetryable: [502, 503, 504].includes(response.status),
};
default:
throw new Error(`Unexpected status code: ${response.status}`);
}
} catch (error) {
if (error.status) throw error;
throw { status: 0, message: 'Network error', isRetryable: true };
}
}