Quay lại trang chủ

Tra cứu Mã trạng thái HTTP (HTTP Status Codes)

Tra cứu ý nghĩa đầy đủ của tất cả mã trạng thái HTTP từ 1xx đến 5xx, bao gồm mô tả chi tiết và cách xử lý.

100Continue
HTTP Continue

The server has received the request headers and the client should proceed to send the request body.

The server has received the request headers and the client should proceed to send the request body.

Tình huống thực tế

Used when the client sends large data and wants to check if the server will accept the request before the actual upload.

101Switching Protocols
HTTP Switching Protocols

The requester has asked the server to switch protocols and the server has agreed to do so.

The requester has asked the server to switch protocols and the server has agreed to do so.

Tình huống thực tế

Commonly seen when establishing WebSockets connection from regular HTTP protocol.

200OK
HTTP OK

Standard response for successful HTTP requests.

Standard response for successful HTTP requests.

Tình huống thực tế

Webpage displays successfully, API returns standard data.

201Created
HTTP Created

The request has been fulfilled, resulting in the creation of a new resource.

The request has been fulfilled, resulting in the creation of a new resource.

Tình huống thực tế

Successful registration of a new account, creating a new record in database via POST method.

202Accepted
HTTP Accepted

The request has been accepted for processing, but the processing has not been completed.

The request has been accepted for processing, but the processing has not been completed.

Tình huống thực tế

Submitting video rendering request, running heavy background tasks queuing for long processing times.

204No Content
HTTP No Content

The server successfully processed the request, and is not returning any content.

The server successfully processed the request, and is not returning any content.

Tình huống thực tế

Successful DELETE request to remove resources, or auto-saving drafts.

206Partial Content
HTTP Partial Content

The server is delivering only part of the resource due to a range header sent by the client.

The server is delivering only part of the resource due to a range header sent by the client.

Tình huống thực tế

Resuming file download, fast-forwarding streaming video on a browser.

301Moved Permanently
HTTP Moved Permanently

This and all future requests should be directed to the given URI.

This and all future requests should be directed to the given URI.

Tình huống thực tế

Changing website domain name, redirecting all traffic from HTTP to HTTPS.

302Found
HTTP Found

Tells the client to look at another URL, but future requests should still use the original URL.

Tells the client to look at another URL, but future requests should still use the original URL.

Tình huống thực tế

Redirecting unauthenticated users to login page, then back to the original page.

304Not Modified
HTTP Not Modified

Indicates that the resource has not been modified since the version specified by the request headers.

Indicates that the resource has not been modified since the version specified by the request headers.

Tình huống thực tế

Reloading web page, browser uses cached images and CSS files to save bandwidth.

307Temporary Redirect
HTTP Temporary Redirect

The request should be repeated with another URI; however, future requests should still use the original URI.

The request should be repeated with another URI; however, future requests should still use the original URI.

Tình huống thực tế

Temporarily redirecting POST request to another server while keeping the request body data intact.

308Permanent Redirect
HTTP Permanent Redirect

The request and all future requests should be directed to another URI, keeping the method.

The request and all future requests should be directed to another URI, keeping the method.

Tình huống thực tế

Permanently redirecting API POST request to a new endpoint version (v1 -> v2).

400Bad Request
HTTP Bad Request

The server cannot or will not process the request due to an apparent client error.

The server cannot or will not process the request due to an apparent client error.

Tình huống thực tế

Sending malformed JSON strings, missing required parameters in API request.

401Unauthorized
HTTP Unauthorized

Similar to 403 Forbidden, but specifically for use when authentication is required and has failed.

Similar to 403 Forbidden, but specifically for use when authentication is required and has failed.

Tình huống thực tế

Accessing API requiring authentication without sending JWT Token in Authorization header.

403Forbidden
HTTP Forbidden

The request was valid, but the server is refusing action. The user might not have the necessary permissions.

The request was valid, but the server is refusing action. The user might not have the necessary permissions.

Tình huống thực tế

Standard account attempting to access Admin management page.

404Not Found
HTTP Not Found

The requested resource could not be found but may be available in the future.

The requested resource could not be found but may be available in the future.

Tình huống thực tế

User typo in URL path, or article deleted from system by admin.

405Method Not Allowed
HTTP Method Not Allowed

A request method is not supported for the requested resource.

A request method is not supported for the requested resource.

Tình huống thực tế

Attempting POST request to a static HTML page that only allows GET.

408Request Timeout
HTTP Request Timeout

The server timed out waiting for the request.

The server timed out waiting for the request.

Tình huống thực tế

Client network connection too weak, packet transmission interrupted midway.

409Conflict
HTTP Conflict

Indicates that the request could not be processed because of conflict in the current state of the resource.

Indicates that the request could not be processed because of conflict in the current state of the resource.

Tình huống thực tế

Registering account with an email already existing in database.

429Too Many Requests
HTTP Too Many Requests

The user has sent too many requests in a given amount of time (rate limiting).

The user has sent too many requests in a given amount of time (rate limiting).

Tình huống thực tế

Brute-forcing password, continuously spamming API in a short time.

500Internal Server Error
HTTP Internal Server Error

A generic error message, given when an unexpected condition was encountered.

A generic error message, given when an unexpected condition was encountered.

Tình huống thực tế

Developer coding error (e.g. null pointer, division by zero) causing Node.js/PHP application crash.

501Not Implemented
HTTP Not Implemented

The server either does not recognize the request method, or it lacks the ability to fulfill the request.

The server either does not recognize the request method, or it lacks the ability to fulfill the request.

Tình huống thực tế

Sending advanced API request not yet programmed in current server version.

502Bad Gateway
HTTP Bad Gateway

The server was acting as a gateway or proxy and received an invalid response from the upstream server.

The server was acting as a gateway or proxy and received an invalid response from the upstream server.

Tình huống thực tế

Node.js app running under PM2 stopped/crashed, causing Nginx proxy to return 502 error to browser.

503Service Unavailable
HTTP Service Unavailable

The server cannot handle the request (because it is overloaded or down for maintenance).

The server cannot handle the request (because it is overloaded or down for maintenance).

Tình huống thực tế

Ticketing website overloaded during hot event ticket sales, or server undergoing maintenance upgrade.

504Gateway Timeout
HTTP Gateway Timeout

The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

Tình huống thực tế

Database server processing SQL query too slowly (timeout), causing Gateway to disconnect first.

Công cụ liên quan