Mã trạng thái HTTP là gì
Mã trạng thái HTTP là số 3 chữ số máy chủ trả về để báo kết quả xử lý yêu cầu, được định nghĩa trong RFC 7231 và chia thành 5 nhóm: 1xx (Thông tin), 2xx (Thành công), 3xx (Chuyển hướng), 4xx (Lỗi client) và 5xx (Lỗi server).
Preparing your comprehensive developer toolkit
Tra cứu mã trạng thái HTTP
| Mã | Tên | Tra cứu mã trạng thái HTTP | Phân loại |
|---|---|---|---|
| 100 | Continue | The server has received the request headers and the client should proceed to send the request body. | Thông tin |
| 101 | Switching Protocols | The requester has asked the server to switch protocols and the server has agreed to do so. | Thông tin |
| 102 | Processing | The server has received and is processing the request, but no response is available yet. | Thông tin |
| 103 | Early Hints | Used to return some response headers before final HTTP message. | Thông tin |
| 200 | OK | The request has succeeded. The information returned with the response is dependent on the method used in the request. | Thành công |
| 201 | Created | The request has been fulfilled and resulted in a new resource being created. | Thành công |
| 202 | Accepted | The request has been accepted for processing, but the processing has not been completed. | Thành công |
| 203 | Non-Authoritative Information | The server successfully processed the request, but is returning information that may be from another source. | Thành công |
| 204 | No Content | The server successfully processed the request and is not returning any content. | Thành công |
| 205 | Reset Content | The server successfully processed the request, but is not returning any content and requires that the requester reset the document view. | Thành công |
| 206 | Partial Content | The server is delivering only part of the resource due to a range header sent by the client. | Thành công |
| 207 | Multi-Status | The message body that follows is an XML message and can contain a number of separate response codes. | Thành công |
| 208 | Already Reported | The members of a DAV binding have already been enumerated in a preceding part of the multistatus response. | Thành công |
| 226 | IM Used | The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance. | Thành công |
| 300 | Multiple Choices | The request has more than one possible response. The user agent or user should choose one of them. | Chuyển hướng |
| 301 | Moved Permanently | The URL of the requested resource has been changed permanently. The new URL is given in the response. | Chuyển hướng |
| 302 | Found | The URI of requested resource has been changed temporarily. Further changes in the URI might be made in the future. | Chuyển hướng |
| 303 | See Other | The server sent this response to direct the client to get the requested resource at another URI with a GET request. | Chuyển hướng |
| 304 | Not Modified | This is used for caching purposes. It tells the client that the response has not been modified. | Chuyển hướng |
| 305 | Use Proxy | The requested resource is available only through a proxy, the address for which is provided in the response. | Chuyển hướng |