HTTP اسٹیٹس کوڈز گائیڈ

تمام HTTP اسٹیٹس کوڈز، ان کے معانی اور استعمال کی تفصیلی گائیڈ تلاش کریں۔

100
Continue
The server received the initial part of the request; the client should continue sending the rest
Informational
101
Switching Protocols
The server understands and agrees to the client's protocol switch request
Informational
102
Processing
The server received the request and is still processing it
Informational
200
OK
The request succeeded
Success
201
Created
The request succeeded and a new resource was created
Success
202
Accepted
The request was accepted but has not finished processing
Success
204
No Content
The request succeeded but there is no content to return
Success
206
Partial Content
The server successfully processed a partial GET request
Success
300
Multiple Choices
The request has more than one possible response
Redirection
301
Moved Permanently
The requested resource has moved permanently to a new location
Redirection
302
Found
The requested resource is temporarily served from a different URI
Redirection
304
Not Modified
Not modified; use the cached version
Redirection
307
Temporary Redirect
Temporary redirect, keeping the request method
Redirection
308
Permanent Redirect
Permanent redirect, keeping the request method
Redirection
400
Bad Request
The server cannot understand the request format
Client error
401
Unauthorized
The request requires authentication
Client error
403
Forbidden
The server refuses the request
Client error
404
Not Found
The requested resource does not exist
Client error
405
Method Not Allowed
The request method is not allowed
Client error
408
Request Timeout
The server timed out waiting for the request
Client error
409
Conflict
The request conflicts with the server's current state
Client error
410
Gone
The requested resource has been permanently deleted
Client error
413
Payload Too Large
The request entity is too large
Client error
414
URI Too Long
The request URI is too long
Client error
415
Unsupported Media Type
Unsupported media type
Client error
422
Unprocessable Entity
The request is well-formed but semantically incorrect
Client error
429
Too Many Requests
Too many requests
Client error
500
Internal Server Error
Internal server error
Server error
501
Not Implemented
The server does not support the requested functionality
Server error
502
Bad Gateway
Bad gateway
Server error
503
Service Unavailable
Service temporarily unavailable
Server error
504
Gateway Timeout
Gateway timeout
Server error

HTTP اسٹیٹس کوڈز گائیڈ کے بارے میں — تفصیلی رہنما

زمرہ: نیٹ ورک اور HTTP 100% براؤزر میں مقامی

HTTP اسٹیٹس کوڈ ریفرنس معیاری IETF RFC HTTP رسپانس اسٹیٹس کوڈز کی ایک جامع ڈکشنری فراہم کرتا ہے جنہیں 1xx (معلوماتی)، 2xx (کامیابی)، 3xx (ری ڈائریکشن)، 4xx (کلائنٹ کی خرابی)، اور 5xx (سرور کی خرابی) کے زمروں میں تقسیم کیا گیا ہے۔

ہر اندراج میں اس کا مستند RFC نام، تفصیلی آرکیٹیکچرل وضاحتیں، عام محرک حالات (ٹرگر شرائط)، اور خرابیوں کو دور کرنے کے لیے اصلاحی تجاویز شامل ہیں۔ مکمل طور پر کلائنٹ سائیڈ ڈیٹا بیس کے تحت چلنے کی بدولت، تلاش کے نتائج بغیر کسی نیٹ ورک تاخیر کے فوری طور پر آف لائن ظاہر ہوتے ہیں۔

#http #status #code #404 #500 #200

اہم خصوصیات اور صلاحیتیں

  • معیاری 1xx سے 5xx تک HTTP/1.1 اور HTTP/2 رسپانس کوڈز کی مکمل کیٹلاگ
  • گہری آرکیٹیکچرل دستاویزات جو RFC کے ماخذ، بنیادی وجوہات (root causes)، اور ڈیبگنگ کے مراحل بیان کرتی ہیں
  • عددی کوڈ (مثلاً 404، 503) یا قدرتی مطلوبہ الفاظ کے ذریعے فوری فزی سرچ فلٹرنگ
  • 100% آف لائن جامد (static) ریفرنس گائیڈ جو سرور کے انحصار کے بغیر قابل رسائی ہے

استعمال کرنے کا طریقہ

  1. 1

    سرچ بار میں کوئی اسٹیٹس کوڈ نمبر (مثلاً 504) یا کلیدی لفظ (مثلاً gateway، unauthorized) درج کریں۔

  2. 2

    کسی بھی متعلقہ اسٹیٹس کارڈ پر کلک کریں تاکہ اس کی تفصیلی آرکیٹیکچرل وضاحت کھولی جا سکے۔

  3. 3

    اپنی ایپلیکیشن کے لیے تجویز کردہ تشخیص اور خرابیوں کے ازالے کے طریقے دیکھیں۔

عام استعمال کی صورتیں

  • ← Nginx، Cloudflare، یا ریورس پراکسی کی 502 Bad Gateway اور 504 Timeout جیسی خرابیوں کا ازالہ کرنا
  • ← API کی تصدیق (authentication) ڈیزائن کرتے وقت 401 Unauthorized اور 403 Forbidden کے درمیان فرق واضح کرنا
  • ← REST APIs کے لیے معنوی اعتبار سے درست رسپانس کوڈز کا انتخاب کرنا (مثلاً 201 Created بمقابلہ 204 No Content)

متعلقہ ٹولز

اکثر پوچھے گئے سوالات اور رازداری

301 اور 302 ری ڈائریکٹس کے درمیان عملی فرق کیا ہے؟

301 Moved Permanently براؤزرز اور سرچ کرالرز کو نئے ٹارگٹ ایڈریس کو مستقل طور پر کیش کرنے کی ہدایت کرتا ہے، جبکہ 302 Found ایک عارضی ری ڈائریکشن کی نشاندہی کرتا ہے جو سرچ انڈیکس میں اصل URL کو برقرار رکھتا ہے۔

ایک API کو 400 Bad Request کے بجائے کب 422 Unprocessable Entity واپس کرنا چاہیے؟

HTTP 400 خراب نحو (مثلاً غلط JSON) کی نشاندہی کرتا ہے، جبکہ 422 ان نحو کے لحاظ سے درست درخواستوں کی نشاندہی کرتا ہے جو معنوی کاروباری اصولوں کی خلاف ورزی کرتی ہیں (مثلاً عمر منفی نہیں ہو سکتی)۔