Ý nghĩa: Server đã nhận được phần đầu của request và client có thể tiếp tục gửi phần còn lại.
Khi nào sử dụng:
Expect: 100-continue trướcVí dụ thực tế: Upload file lớn lên server, client kiểm tra xem server có chấp nhận không trước khi gửi toàn bộ dữ liệu.
URL test: https://material.playwrightvn.com/api/status-code/100.php
Ý nghĩa: Server đồng ý chuyển đổi giao thức theo yêu cầu của client.
Khi nào sử dụng:
Upgrade và server chấp nhậnVí dụ thực tế: Kết nối WebSocket cho chat real-time hoặc live notifications.
URL test: https://material.playwrightvn.com/api/status-code/101.php
Ý nghĩa: Server đã nhận và đang xử lý request, nhưng chưa có response.
Khi nào sử dụng:
Ví dụ thực tế: Xử lý file lớn trên WebDAV server, copy nhiều files.
URL test: https://material.playwrightvn.com/api/status-code/102.php
Ý nghĩa: Cho phép server gửi một số headers trước khi response chính được chuẩn bị xong.
Khi nào sử dụng:
Link với rel=preloadVí dụ thực tế: Website gợi ý browser tải trước CSS và fonts trong khi server đang render HTML.
URL test: https://material.playwrightvn.com/api/status-code/103.php
Ý nghĩa: Request đã thành công, response phụ thuộc vào phương thức HTTP được sử dụng.
Khi nào sử dụng:
Ví dụ thực tế: API trả về danh sách users, cập nhật profile thành công.
URL test: https://material.playwrightvn.com/api/status-code/200.php
Ý nghĩa: Request đã thành công và một resource mới đã được tạo.
Khi nào sử dụng:
Location chỉ đến URL của resource mớiVí dụ thực tế: Tạo user mới, tạo bài post, upload file lên server.
URL test: https://material.playwrightvn.com/api/status-code/201.php
Ý nghĩa: Request đã được chấp nhận để xử lý, nhưng chưa hoàn thành.
Khi nào sử dụng:
Ví dụ thực tế: Gửi email hàng loạt, xử lý video upload, export báo cáo lớn.
URL test: https://material.playwrightvn.com/api/status-code/202.php
Ý nghĩa: Request thành công nhưng thông tin trả về có thể đã được sửa đổi bởi proxy.
Khi nào sử dụng:
Ví dụ thực tế: CDN trả về cached content với headers đã được modify.
URL test: https://material.playwrightvn.com/api/status-code/203.php
Ý nghĩa: Request thành công nhưng không có nội dung để trả về.
Khi nào sử dụng:
Ví dụ thực tế: Xóa user, cập nhật settings, toggle feature on/off.
URL test: https://material.playwrightvn.com/api/status-code/204.php
Ý nghĩa: Request thành công, server yêu cầu client reset document view.
Khi nào sử dụng:
Ví dụ thực tế: Submit form thành công và clear form để nhập data mới.
URL test: https://material.playwrightvn.com/api/status-code/205.php
Ý nghĩa: Server chỉ trả về một phần của resource theo yêu cầu của client.
Khi nào sử dụng:
Range để request một phầnContent-RangeVí dụ thực tế: Xem video YouTube, download manager resume file, pagination với range requests.
URL test: https://material.playwrightvn.com/api/status-code/206.php
Ý nghĩa: Response chứa nhiều status codes cho nhiều operations độc lập.
Khi nào sử dụng:
Ví dụ thực tế: Copy nhiều files, một số thành công, một số thất bại.
URL test: https://material.playwrightvn.com/api/status-code/207.php
Ý nghĩa: Members của DAV binding đã được liệt kê trong phần trước của response.
Khi nào sử dụng:
Ví dụ thực tế: WebDAV PROPFIND với nhiều bindings đến cùng resource.
URL test: https://material.playwrightvn.com/api/status-code/208.php
Ý nghĩa: Server đã thực hiện GET request cho resource, và response là kết quả của một hoặc nhiều instance-manipulations.
Khi nào sử dụng:
Ví dụ thực tế: Client có cached version, server chỉ gửi diff thay vì toàn bộ resource.
URL test: https://material.playwrightvn.com/api/status-code/226.php
Ý nghĩa: Request có nhiều lựa chọn responses, user hoặc user agent có thể chọn một.
Khi nào sử dụng:
Ví dụ thực tế: API có thể trả về JSON hoặc XML, file có nhiều format.
URL test: https://material.playwrightvn.com/api/status-code/300.php
Ý nghĩa: Resource đã được chuyển vĩnh viễn sang URL mới.
Khi nào sử dụng:
LocationVí dụ thực tế: Đổi domain name, thay đổi cấu trúc URL của website.
URL test: https://material.playwrightvn.com/api/status-code/301.php
Ý nghĩa: Resource tạm thời ở URL khác.
Khi nào sử dụng:
Ví dụ thực tế: Redirect đến trang login, temporary maintenance page.
URL test: https://material.playwrightvn.com/api/status-code/302.php
Ý nghĩa: Redirect đến URL khác sử dụng GET method.
Khi nào sử dụng:
Ví dụ thực tế: Submit form xong redirect về trang success, create user xong redirect về user detail page.
URL test: https://material.playwrightvn.com/api/status-code/303.php
Ý nghĩa: Resource không thay đổi, client có thể dùng cached version.
Khi nào sử dụng:
If-Modified-Since hoặc If-None-MatchVí dụ thực tế: Browser cache images, CSS, JS files.
URL test: https://material.playwrightvn.com/api/status-code/304.php
Ý nghĩa: Redirect tạm thời, giữ nguyên HTTP method.
Khi nào sử dụng:
Ví dụ thực tế: POST form data đến server backup khi main server bận.
URL test: https://material.playwrightvn.com/api/status-code/307.php
Ý nghĩa: Redirect vĩnh viễn, giữ nguyên HTTP method.
Khi nào sử dụng:
Ví dụ thực tế: API endpoint đổi URL vĩnh viễn, giữ nguyên POST/PUT methods.
URL test: https://material.playwrightvn.com/api/status-code/308.php
Ý nghĩa: Server không thể hiểu request do lỗi cú pháp từ client.
Khi nào sử dụng:
Ví dụ thực tế: Gửi JSON invalid, thiếu required field, sai data type.
URL test: https://material.playwrightvn.com/api/status-code/400.php
Ý nghĩa: Client chưa xác thực (authentication required).
Khi nào sử dụng:
WWW-AuthenticateVí dụ thực tế: Truy cập API protected endpoint mà không có token, JWT expired.
URL test: https://material.playwrightvn.com/api/status-code/401.php
Ý nghĩa: Reserved cho tương lai, hiện chưa được dùng rộng rãi.
Khi nào sử dụng:
Ví dụ thực tế: Một số APIs sử dụng cho premium features, quota exceeded.
URL test: https://material.playwrightvn.com/api/status-code/402.php
Ý nghĩa: Server hiểu request nhưng từ chối thực hiện (authorization failed).
Khi nào sử dụng:
Ví dụ thực tế: User thường cố xóa admin, truy cập trang admin mà không phải admin.
URL test: https://material.playwrightvn.com/api/status-code/403.php
Ý nghĩa: Server không tìm thấy resource được yêu cầu.
Khi nào sử dụng:
Ví dụ thực tế: Truy cập /users/999999 khi user không tồn tại, sai đường dẫn URL.
URL test: https://material.playwrightvn.com/api/status-code/404.php
Ý nghĩa: HTTP method không được hỗ trợ cho resource này.
Khi nào sử dụng:
Allow liệt kê các methods hợp lệVí dụ thực tế: POST đến read-only endpoint, DELETE protected resource.
URL test: https://material.playwrightvn.com/api/status-code/405.php
Ý nghĩa: Server không thể tạo response phù hợp với Accept headers của client.
Khi nào sử dụng:
Ví dụ thực tế: API chỉ có JSON nhưng client request XML.
URL test: https://material.playwrightvn.com/api/status-code/406.php
Ý nghĩa: Client phải authenticate với proxy trước.
Khi nào sử dụng:
Proxy-AuthenticateVí dụ thực tế: Truy cập internet qua corporate proxy cần đăng nhập.
URL test: https://material.playwrightvn.com/api/status-code/407.php
Ý nghĩa: Server timeout chờ request từ client.
Khi nào sử dụng:
Ví dụ thực tế: Upload file quá lâu, network chậm, client không phản hồi.
URL test: https://material.playwrightvn.com/api/status-code/408.php
Ý nghĩa: Request xung đột với trạng thái hiện tại của resource.
Khi nào sử dụng:
Ví dụ thực tế: Đăng ký email đã tồn tại, update resource đã bị người khác sửa.
URL test: https://material.playwrightvn.com/api/status-code/409.php
Ý nghĩa: Resource đã bị xóa vĩnh viễn và không có forwarding address.
Khi nào sử dụng:
Ví dụ thực tế: Bài post đã xóa, campaign đã hết hạn, content đã archived.
URL test: https://material.playwrightvn.com/api/status-code/410.php
Ý nghĩa: Server yêu cầu header Content-Length.
Khi nào sử dụng:
Ví dụ thực tế: Upload file mà không chỉ định size.
URL test: https://material.playwrightvn.com/api/status-code/411.php
Ý nghĩa: Một hoặc nhiều preconditions trong headers không được đáp ứng.
Khi nào sử dụng:
Ví dụ thực tế: Update resource với stale ETag, conditional update failed.
URL test: https://material.playwrightvn.com/api/status-code/412.php
Ý nghĩa: Request body quá lớn, server từ chối xử lý.
Khi nào sử dụng:
Ví dụ thực tế: Upload file 100MB khi limit là 10MB, JSON payload quá lớn.
URL test: https://material.playwrightvn.com/api/status-code/413.php
Ý nghĩa: URI dài hơn server có thể xử lý.
Khi nào sử dụng:
Ví dụ thực tế: URL với hàng trăm query params, very long search query.
URL test: https://material.playwrightvn.com/api/status-code/414.php
Ý nghĩa: Server không hỗ trợ media type của request body.
Khi nào sử dụng:
Ví dụ thực tế: Upload .exe file khi chỉ chấp nhận images, gửi XML đến JSON-only API.
URL test: https://material.playwrightvn.com/api/status-code/415.php
Ý nghĩa: Range header request không thể được đáp ứng.
Khi nào sử dụng:
Content-RangeVí dụ thực tế: Request bytes 1000-2000 của file chỉ 500 bytes.
URL test: https://material.playwrightvn.com/api/status-code/416.php
Ý nghĩa: Server không thể đáp ứng yêu cầu trong Expect header.
Khi nào sử dụng:
Ví dụ thực tế: Client expect 100-continue nhưng server reject.
URL test: https://material.playwrightvn.com/api/status-code/417.php
Ý nghĩa: April Fools' joke từ năm 1998, server từ chối pha cà phê vì nó là ấm trà.
Khi nào sử dụng:
Ví dụ thực tế: Một số APIs dùng làm joke hoặc Easter egg.
URL test: https://material.playwrightvn.com/api/status-code/418.php
Ý nghĩa: Request được gửi đến server không thể tạo response.
Khi nào sử dụng:
Ví dụ thực tế: Load balancer gửi request đến sai server.
URL test: https://material.playwrightvn.com/api/status-code/421.php
Ý nghĩa: Request đúng format nhưng có semantic errors.
Khi nào sử dụng:
Ví dụ thực tế: Email format sai, số điện thoại không hợp lệ, ngày sinh trong tương lai.
URL test: https://material.playwrightvn.com/api/status-code/422.php
Ý nghĩa: Resource đang bị locked.
Khi nào sử dụng:
Ví dụ thực tế: Document đang được edit, database row bị lock.
URL test: https://material.playwrightvn.com/api/status-code/423.php
Ý nghĩa: Request failed vì một request trước đó failed.
Khi nào sử dụng:
Ví dụ thực tế: WebDAV batch operation, một phần failed làm phần khác fail theo.
URL test: https://material.playwrightvn.com/api/status-code/424.php
Ý nghĩa: Server không muốn xử lý request có khả năng bị replay.
Khi nào sử dụng:
Ví dụ thực tế: TLS 1.3 early data được reject vì lý do bảo mật.
URL test: https://material.playwrightvn.com/api/status-code/425.php
Ý nghĩa: Client cần chuyển sang protocol khác.
Khi nào sử dụng:
UpgradeVí dụ thực tế: Bắt buộc dùng HTTPS, yêu cầu WebSocket connection.
URL test: https://material.playwrightvn.com/api/status-code/426.php
Ý nghĩa: Server yêu cầu request phải có điều kiện (conditional).
Khi nào sử dụng:
Ví dụ thực tế: Update operation phải có ETag để tránh conflict.
URL test: https://material.playwrightvn.com/api/status-code/428.php
Ý nghĩa: Client đã gửi quá nhiều requests trong khoảng thời gian cho phép.
Khi nào sử dụng:
Retry-AfterVí dụ thực tế: API rate limit 100 req/minute, spam prevention.
URL test: https://material.playwrightvn.com/api/status-code/429.php
Ý nghĩa: Headers quá lớn, server từ chối xử lý.
Khi nào sử dụng:
Ví dụ thực tế: Cookies tích lũy quá nhiều data, JWT token quá lớn.
URL test: https://material.playwrightvn.com/api/status-code/431.php
Ý nghĩa: Resource không available vì lý do pháp lý.
Khi nào sử dụng:
Ví dụ thực tế: Content bị censor ở một số quốc gia, copyright violation.
URL test: https://material.playwrightvn.com/api/status-code/451.php
Ý nghĩa: Lỗi chung khi server gặp lỗi không mong muốn.
Khi nào sử dụng:
Ví dụ thực tế: Null pointer exception, database connection failed, code bug.
URL test: https://material.playwrightvn.com/api/status-code/500.php
Ý nghĩa: Server không hỗ trợ chức năng được yêu cầu.
Khi nào sử dụng:
Ví dụ thực tế: Server không support HTTP/2, method PATCH chưa implement.
URL test: https://material.playwrightvn.com/api/status-code/501.php
Ý nghĩa: Server (proxy/gateway) nhận được invalid response từ upstream server.
Khi nào sử dụng:
Ví dụ thực tế: Nginx không kết nối được app server, API gateway timeout.
URL test: https://material.playwrightvn.com/api/status-code/502.php
Ý nghĩa: Server tạm thời không thể xử lý request.
Khi nào sử dụng:
Retry-AfterVí dụ thực tế: Server đang bảo trì, quá tải, đang deploy.
URL test: https://material.playwrightvn.com/api/status-code/503.php
Ý nghĩa: Gateway/proxy timeout chờ response từ upstream server.
Khi nào sử dụng:
Ví dụ thực tế: Long-running query, slow API, backend not responding.
URL test: https://material.playwrightvn.com/api/status-code/504.php
Ý nghĩa: HTTP version trong request không được server hỗ trợ.
Khi nào sử dụng:
Ví dụ thực tế: Old server không hỗ trợ HTTP/2.
URL test: https://material.playwrightvn.com/api/status-code/505.php
Ý nghĩa: Server có internal configuration error trong content negotiation.
Khi nào sử dụng:
Ví dụ thực tế: Content negotiation loop, server config sai.
URL test: https://material.playwrightvn.com/api/status-code/506.php
Ý nghĩa: Server không đủ storage để hoàn thành request.
Khi nào sử dụng:
Ví dụ thực tế: Upload file khi server disk đầy, quota limit reached.
URL test: https://material.playwrightvn.com/api/status-code/507.php
Ý nghĩa: Server phát hiện infinite loop khi xử lý request.
Khi nào sử dụng:
Ví dụ thực tế: Page A redirect đến B, B redirect về A.
URL test: https://material.playwrightvn.com/api/status-code/508.php
Ý nghĩa: Request cần extensions để server có thể thực hiện.
Khi nào sử dụng:
Ví dụ thực tế: Ít được sử dụng trong thực tế.
URL test: https://material.playwrightvn.com/api/status-code/510.php
Ý nghĩa: Client cần authenticate để có quyền truy cập network.
Khi nào sử dụng:
Ví dụ thực tế: Airport WiFi yêu cầu đăng nhập, cafe WiFi với portal.
URL test: https://material.playwrightvn.com/api/status-code/511.php