এই নিবন্ধটি ইংরেজি থেকে বাংলায় অনুবাদ করা প্রয়োজন।
এই নিবন্ধটি ইংরেজি ভাষায় লেখা হয়েছে। নিবন্ধটি যদি ইংরেজি ভাষার ব্যবহারকারীদের উদ্দেশ্যে লেখা হয়ে থাকে তবে, অনুগ্রহ করে নিবন্ধটি ঐ নির্দিষ্ট ভাষার উইকিপিডিয়াতে তৈরি করুন। অন্যান্য ভাষার উইকিপিডিয়ার তালিকা দেখুন এখানে।
এই নিবন্ধটি পড়ার জন্য আপনি গুগল অনুবাদ ব্যবহার করতে পারেন। কিন্তু এ ধরনের স্বয়ংক্রিয় সরঞ্জাম দ্বারা অনুবাদকৃত লেখা উইকিপিডিয়াতে সংযোজন করবেন না, কারণ সাধারণত এই সরঞ্জামগুলোর অনুবাদ মানসম্পন্ন হয় না।
হাইপার টেক্সট ট্রান্সফার প্রোটোকল (এইচটিটিপি) ব্যবহার করে সার্ভার থেকে ক্লায়েন্টের নিকট তথ্য আদান-প্রদান করা হয়, এ সময় তথ্যের পাশাপাশি নির্দিষ্ট একটি কোডও পাঠানো হয়, যাকে স্ট্যাটাস বা অবস্থাসূচক কোড বলা হয়। এ কোডগুলো যে কোনো ধরনের হতে পারে। তবে RFC থেকে কিছু কোড নির্দিষ্ট করে দেয়া আছে যেগুলো গোটা বিশ্বে আদর্শ হিসেবে ব্যবহৃত হয়। এ কোডগুলোই মূলতঃ এ তালিকায় উল্লেখ করা হয়েছে। অধিকাংশ কোডগুলোর বর্ণনা উল্লেখ করার ক্ষেত্রে HTTP/1.1 আদর্শ (RFC 7231)[১] -এর অনুসরণ করা হয়েছে। যেগুলো এ আদর্শের অন্তর্ভুক্ত নয়, সেগুলোতে তা আলাদা করে উল্লেখ করা হয়েছে।
তথ্যমূলক প্রতিক্রিয়ার অর্থ হলো: সার্ভারে ক্লায়েন্টের আবেদন গৃহীত হয়েছে এবং সার্ভার আবেদনের ধরন বুঝতে পেরেছে। ক্লায়েন্ট যাতে করে চূড়ান্ত প্রতিক্রিয়ার জন্য অপেক্ষা করে সে জন্য এ ধরনের অবস্থাসূচক কোড প্রেরণ করা হয়। ফলে সার্ভার থেকে প্রেরিত বার্তায় শুধুমাত্র অবস্থাসূচক লাইন[note ১], বিভিন্ন ধরনের হেডার, এবং সবশেষে একটা ফাঁকা লাইন থাকে (কোনো টেক্সট থাকে না)। যেহেতু HTTP/1.0 আদর্শে এ ধরনের প্রতিক্রিয়ার কথা উল্লেখ নেই, সেহেতু HTTP/1.0 অনুসরণ করে এমন কোনো ক্লায়েন্টের কাছে পরীক্ষামূলক অবস্থা ব্যতীত আর কোনো অবস্থাতেই[note ২] সার্ভার থেকে এ ধরনের প্রতিক্রিয়া প্রেরণ করা যাবে না।[৩]
100 Continue
সার্ভারে রিকুয়েস্ট হেডারগুলো গৃহীত হয়েছে এবং ক্লায়েন্ট চাইলে এখন রিকুয়েস্ট বডি (যদি প্রযোজ্য হয়, যেমন POST আবেদন প্রণালীর ক্ষেত্রে) পাঠাতে পারে। সার্ভারে বড় আকারের কোনো তথ্য প্রেরণ করার ক্ষেত্রে একে কাজে লাগানো যেতে পারে। কেননা সার্ভার শুরুতেই যদি আবেদন না মঞ্জুর করে সেক্ষেত্রে সার্ভারে বড় আকারে তথ্য পাঠানো সম্পূর্ণ বৃথা। এক্ষেত্রে ক্লায়েন্টের প্রথম রিকুয়েস্ট হেডারে Expect: 100-continue অবশ্যই থাকতে হবে এবং প্রতিক্রিয়ায় 100 Continue পাওয়া সাপেক্ষে সার্ভারে রিকুয়েস্ট বডি পাঠাতে হবে। কারণ সার্ভার যদি প্রতিক্রিয়ায় 403 Forbidden বা 405 Method Not Allowed স্ট্যাটাস কোড প্রেরণ করে তাহলে রিকুয়েস্ট পাঠানোর কোনো মানে নেই। 417 Expectation Failed দ্বারা বোঝানো হয় যে প্রথম রিকুয়েস্টটি পুনরায় পাঠাতে হবে কিন্তু Expect হেডার বাদ দিয়ে, কেননা সার্ভার এটি সাপোর্ট করে না (যেমন, HTTP/1.0 অনুসারী সার্ভারগুলো)।[৪]
101 Switching Protocols
ক্লায়েন্ট সার্ভারকে তার প্রটোকল বদলানোর জন্য আবেদন করেছে এবং সার্ভার তা মঞ্জুর করেছে।[৫]
ফাইল অপারেশনের ক্ষেত্রে একটা WebDAV রিকুয়েস্টে[note ৩] অনেকগুলো সাব-রিকুয়েস্ট থাকতে পারে যেগুলো প্রক্রিয়াকরণ করতে অনেক সময় লেগে যেতে পারে। সে ক্ষেত্রে এই রিকুয়েস্ট দিয়ে বোঝানো হয় যে সার্ভাররে আবেদন গৃহীত হয়েছে, এবং সার্ভার তা এখনো প্রসেস করছে। কাজেই এখনও চূডান্ত কোনো প্রতিক্রিয়া জানানো সম্ভব নয়।[৬] এটি রিকুয়েস্ট বিলীন হয়ে যাওয়া রোধ করে এবং ক্লায়েন্টকে টাইম-আউট হওয়া থেকে বিরত রাখে।
এ ধরনের স্ট্যাটাস কোড দ্বারা বোঝানো হয় যে সার্ভারে ক্লায়েন্টের আবেদন পৌঁছেছে, সার্ভার ক্লায়েন্টের আবেদন বুঝতে পেরেছে, এবং তা সফলভাবে গৃহীত হয়েছে।[২]
200 OK
সফল এইচটিটিপি রিকুয়েস্টের ক্ষেত্রে স্ট্যান্ডার্ড প্রতিক্রিয়া। কিন্তু প্রতিক্রিয়ায় কী থাকবে তা নির্ভর করবে আবেদন প্রণালীর উপরে। যেমন, একটা GET আবেদন প্রণালীর প্রতিক্রিয়াতে কোনো জিনিসের নির্দিষ্ট কিছু বৈশিষ্ট্য থাকবে যেখানে একটা POST আবেদন প্রণালীর প্রতিক্রিয়াতে থাকবে কিছু অ্যাকশানের ফলাফল।[৮]
201 Created
আবেদন পুরোপুরি গৃহীত হয়েছে এবং ফলাফল হিসেবে সার্ভারে নতুন কিছু তৈরি হয়েছে।[৯]
202 Accepted
আবেদন প্রসেসিং-এর জন্য গৃহীত হয়েছে, কিন্তু এখনো প্রসেসিং চলছে। শেষ পর্যন্ত প্রসেস পুরোপুরি শেষ হতেও পারে আবার নাও পারে।[১০]
203 Non-Authoritative Information (HTTP/1.1 থেকে)
সার্ভার এক ধরনের প্রক্সি যা প্রকৃত সার্ভারের কাছ থেকে 200 OK প্রতিক্রিয়া পেয়েছে কিন্তু প্রক্সি সার্ভার সেটা কিছুটা রূপান্তর করে ক্লায়েন্টের কাছে পাঠাচ্ছে।[১১][১২]
204 No Content
সার্ভার সফলভাবে আবেদনটি প্রক্রিয়াকরণ করেছে এবং বিনিময়ে কোনো বার্তা পাঠাচ্ছে না বা পাঠানোর প্রয়োজন নেই।[১৩]
205 Reset Content
সার্ভার সফলভাবে আবেদনটি প্রক্রিয়াকরণ করেছে এবং বিনিময়ে কোনো বার্তা পাঠাচ্ছে না কিংবা পাঠানোর প্রয়োজন নেই, কিন্তু ক্লায়েন্টের কাছে যে নথিপত্র আছে সেটা পুনঃস্থাপন করার জন্য বলা হচ্ছে।[১৪]
সার্ভার রিসোর্সের কিছু অংশ প্রেরণ করছে। সার্ভার ঠিক কত অংশ পাঠাবে তা রিকুয়েস্ট হেডারে উল্লেখ থাকে। এর ফলে ক্লায়েন্ট বিঘ্নিত ডাউনলোড প্রথম থেকে শুরু না করে নির্দিষ্ট কোনো জায়গা থেকে শুরু করতে পারে, কিংবা একটা নির্দিষ্ট রিসোর্সকে অনেকগুলো অংশে ভাগ করে একসাথে ডাউনলোড করতে পারে।[১৫]
কতগুলো সাব-রিকুয়েস্ট পাঠানো হয়েছে সে অনুসারে মূল বার্তায় একাধিক স্ট্যাটাস কোড থাকতে পারে। এ ধরনের বার্তা সাধারণত XML কিংবা JSON আকারে পাঠানো হয়।[১৬]
এ ধরনের স্ট্যাটাস কোড দ্বারা বোঝানো হয় যে আবেদন সম্পন্ন করতে চাইলে ক্লায়েন্টকে আরও কিছু পদক্ষেপ নিতে হবে। ইউআরএলপুনর্নির্দেশ করার ক্ষেত্রে এ ধরনের স্ট্যাটাস কোডগুলো ব্যবহার করা হয়।[২]
যদি পরের আবেদন প্রণালী GET বা POST হয়, ইউজার এজেন্ট (যেমন, ওয়েব ব্রাউজার) স্বয়ংক্রিয়ভাবে এ পূনর্নির্দেশের কাজ করে থাকে। তবে এক্ষেত্রে অসীমসংখ্যক পূনর্নির্দেশের ব্যাপারে তাদের প্রয়োজনীয় ব্যবস্থা নিতে হয়।[১৮]
300 Multiple Choices
যে রিসোর্সের জন্য আবেদন করা হয়েছে তা ক্লায়েন্ট অনেক উপায়ে গ্রহণ করতে পারে, এবং যে কোনো সময়ে এদের মধ্যে মাত্র একটা নির্বাচন করতে পারবে। উদাহরণস্বরূপ, একই ভিডিও বিভিন্ন ফরম্যাটে কিংবা বিভিন্ন রেজলুশনে থাকতে পারে, যার মধ্যে কোনো নির্দিষ্ট সময়ে যে কোনো একটির জন্য আবেদন করতে পারে।[১৯]
301 Moved Permanently
বর্তমান এবং পরবর্তী সকল আবেদন পাঠানো ইউআরআইতে পুনর্নির্দেশ করতে হবে।[২০]
302 Found
এটি এমন একটি উদাহরণ যার প্রথাগত ব্যবহার আদর্শগত ব্যবহারের সাথে সাংঘর্ষিক। HTTP/1.0 বিবরণী (RFC 1945) অনুসারে এ কোড দ্বারা ক্লায়েন্টকে একটি অস্থায়ী পুনর্নির্দেশের জন্য বলা হত (এর আসল নাম ছিল 302 Moved Temporarily),[২১] কিন্তু সকল জনপ্রিয় ওয়েব ব্রাউজারগুলো একে 303 See Other হিসেবে বাস্তবায়ন করেছে। ফলে এদের আলাদা করার জন্য HTTP/1.1 বিবরণীতে 303 এবং 307 নামক দুইটি পৃথক স্ট্যাটাস কোড যুক্ত করা হয়েছে।[২২] কিন্তু কিছু কিছু ওয়েব অ্যাপ্লিকেশন এবং ফ্রেমওয়ার্ক এখনো এ স্ট্যাটাস কোডকে 303 এর মতো করে ব্যবহার করে।[২৩]
303 See Other (HTTP/1.1 থেকে)
যে আবেদনটি ক্লায়েন্ট পাঠিয়েছে তা আরেকটি ইউআরআইতে পাওয়া যাবে, এবং তা পেতে গেলে GET আবেদন প্রণালী ব্যবহার করতে হবে। POST, PUT বা DELETE আবেদন প্রণালী ব্যবহার করে সার্ভারে আবেদন পাঠানোর পর যদি সার্ভার এ কোডটি পাঠায় তাহলে ক্লায়েন্টকে ধরে নিতে হবে যে প্রাপ্ত ইউআরআই হতে তথ্য নেয়ার জন্য GET আবেদন প্রণালী ব্যবহার করতে হবে।[২৪]
If-Modified-Since বা If-None-Match রিকুয়েস্ট হেডারে রিসোর্সের যে সংস্করণের কথা বলা হয়েছে তার কোনো পরিবর্তন হয় নি। ফলে, নতুন করে ওই রিসোর্সটি পাঠানোর প্রয়োজন নেই যেহেতু ক্লায়েন্টের কাছে ইতোমধ্যে উক্ত সংস্করণের রিসোর্সটি সংরক্ষিত আছে।[২৫]
305 Use Proxy (HTTP/1.1 থেকে)
যে রিসোর্সের জন্য আবেদন করা হয়েছে তা শুধুমাত্র প্রক্সি ব্যবহার করে পাওয়া যাবে। যে ঠিকানায় যেতে হবে তাও উল্লেখ করা থাকে। অনেক এইচটিটিপি ক্লায়েন্ট (যেমন, মোজিলা[২৬] এবং ইন্টারনেট এক্সপ্লোরার) প্রধানত নিরাপত্তার স্বার্থে এ ধরনের আবেদন সমর্থন করে না।[২৭]
306 Switch Proxy
আর ব্যবহৃত হয় না। এটা দ্বারা বোঝানো হত যে “পরবর্তী সকল আবেদন উল্লেখিত প্রক্সি ব্যবহার করে পাঠাতে হবে।”[২৮]
307 Temporary Redirect (HTTP/1.1 থেকে)
এক্ষেত্রে আবেদনটি পুনরায় প্রেরণ করতে হবে তবে অন্য আরেকটি ইউআরআই-তে। কিন্তু এর পরে যে সকল আবেদন প্রেরণ করা হবে, তা আবার আগের ইউআরআই-তেই করতে হবে। 302-এর থেকে এর পার্থক্য হলঃ যে আবেদন প্রণালীতে প্রথম আবেদনটি পাঠানো হয়েছে, ঠিক একই আবেদন প্রণালীতে পরের আবেদনটিও পাঠাতে হবে। যেমন, যে আবদনটি POST আবেদন প্রণালী ব্যবহার করে শুরুতে পাঠানো হয়েছিল, সেটিকে আবার POST আবেদন প্রণালী ব্যবহার করেই পরের ইউআরআইতে পাঠাতে হবে।[২৯]
বর্তমান আবেদনটি এবং এর পরবর্তী সকল আবেদনসমূহ অন্য আরেকটি ইউআরআই ব্যবহার করে পাঠাতে হবে। 307 ও 308, 302 ও 301-এর ব্যবহারকে আংশিকভাবে প্রতিস্থাপন করেছে, কিন্তু উভয়েই আবেদন প্রণালী পরিবর্তন অনুমোদন করে না। কাজেই, একটা ফর্মের তথ্য স্থায়ীভাবে পুনর্নিদেশিত ইউআরআই-তে পাঠালেও তা পূর্বের মতো কাজ করবে।[৩০]
এ শ্রেণির স্ট্যাটাস কোডগুলো সেই সব ক্ষেত্রে প্রযোজ্য যে সব ক্ষেত্রে স্বয়ং ক্লায়েন্টই ত্রুটির পেছনে দায়ী থাকে। Except when responding to a HEAD request, the server should include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. These status codes are applicable to any request method. User agents should display any included entity to the user.[৩১]
400 Bad Request
The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, size too large, invalid request message framing, or deceptive request routing).[৩২]
Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource. See Basic access authentication and Digest access authentication.[৩৩] 401 semantically means "unauthenticated",[৩৪] i.e. the user does not have the necessary credentials.
Note: Some sites issue HTTP 401 when an IP address is banned from the website (usually the website domain) and that specific address is refused permission to access a website.
402 Payment Required
Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, as proposed for example by GNU Taler[৩৫], but that has not yet happened, and this code is not usually used. Google Developers API uses this status if a particular developer has exceeded the daily limit on requests.[৩৬]Stripe API uses this code for errors with processing credit cards.[৩৭]
403 Forbidden
The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource, or may need an account of some sort.
The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.
405 Method Not Allowed
A request method is not supported for the requested resource; for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.
406 Not Acceptable
The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.[৩৮] See Content negotiation.
The client must first authenticate itself with the proxy.[৩৯]
408 Request Timeout
The server timed out waiting for the request. According to HTTP specifications: "The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time."[৪০]
409 Conflict
Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.
410 Gone
Indicates that the resource requested is no longer available and will not be available again. This should be used when a resource has been intentionally removed and the resource should be purged. Upon receiving a 410 status code, the client should not request the resource in the future. Clients such as search engines should remove the resource from their indices.[৪১] Most use cases do not require clients and search engines to purge the resource, and a "404 Not Found" may be used instead.
411 Length Required
The request did not specify the length of its content, which is required by the requested resource.[৪২]
The URI provided was too long for the server to process. Often the result of too much data being encoded as a query-string of a GET request, in which case it should be converted to a POST request.[৪৫] Called "Request-URI Too Long" previously.[৪৬]
415 Unsupported Media Type
The request entity has a media type which the server or resource does not support. For example, the client uploads an image as image/svg+xml, but the server requires that images use a different format.
The client has asked for a portion of the file (byte serving), but the server cannot supply that portion. For example, if the client asked for a part of the file that lies beyond the end of the file.[৪৭] Called "Requested Range Not Satisfiable" previously.[৪৮]
417 Expectation Failed
The server cannot meet the requirements of the Expect request-header field.[৪৯]
The origin server requires the request to be conditional. Intended to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it, and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict."[৫৬]
A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.[৫৭] The code 451 was chosen as a reference to the novel Fahrenheit 451 (see the Acknowledgements in the RFC).
Response status codes beginning with the digit "5" indicate cases in which the server is aware that it has encountered an error or is otherwise incapable of performing the request. Except when responding to a HEAD request, the server should include an entity containing an explanation of the error situation, and indicate whether it is a temporary or permanent condition. Likewise, user agents should display any included entity to the user. These response codes are applicable to any request method.[৫৯]
500 Internal Server Error
A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.[৬০]
501 Not Implemented
The server either does not recognize the request method, or it lacks the ability to fulfill the request. Usually this implies future availability (e.g., a new feature of a web-service API).[৬১]
502 Bad Gateway
The server was acting as a gateway or proxy and received an invalid response from the upstream server.[৬২]
503 Service Unavailable
The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.[৬৩]
504 Gateway Timeout
The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.[৬৪]
505 HTTP Version Not Supported
The server does not support the HTTP protocol version used in the request.[৬৫]
The client needs to authenticate to gain network access. Intended for use by intercepting proxies used to control access to the network (e.g., "captive portals" used to require agreement to Terms of Service before granting full Internet access via a Wi-Fi hotspot).[৫৬]
Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.[৭০]
450 Blocked by Windows Parental Controls (Microsoft)
The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.[৭১]
498 Invalid Token (Esri)
Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.[৭২]
499 Token Required (Esri)
Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.[৭২]
The server has exceeded the bandwidth specified by the server administrator; this is often used by shared hosting providers to limit the bandwidth of customers.[৭৩]
530 Site is frozen
Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.[৭৪]
Microsoft's Internet Information Services web server expands the 4xx error space to signal errors with the client's request.
440 Login Time-out
The client's session has expired and must log in again.[৭৬]
449 Retry With
The server cannot honour the request because the user has not provided the required information.[৭৭]
451 Redirect
Used in Exchange ActiveSync when either a more efficient server is available or the server cannot access the users' mailbox.[৭৮] The client is expected to re-run the HTTP AutoDiscover operation to find a more appropriate server.[৭৯]
Cloudflare's reverse proxy service expands the 5xx series of errors space to signal issues with the origin server.[৮২]
520 Unknown Error
The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers.
521 Web Server Is Down
The origin server has refused the connection from Cloudflare.
522 Connection Timed Out
Cloudflare could not negotiate a TCP handshake with the origin server.
523 Origin Is Unreachable
Cloudflare could not reach the origin server; for example, if the DNS records for the origin server are incorrect.
524 A Timeout Occurred
Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.
525 SSL Handshake Failed
Cloudflare could not negotiate a SSL/TLS handshake with the origin server.
526 Invalid SSL Certificate
Cloudflare could not validate the SSL/TLS certificate that the origin server presented.
527 Railgun Error
Error 527 indicates that the request timed out or failed after the WAN connection had been established.[৮৩]