HTTP Status Codes

1xx: Mã trạng thái thông tin (Informational)

100
Continue

Ý 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:

  • Khi client muốn gửi một request lớn (ví dụ: upload file)
  • Client gửi header Expect: 100-continue trước
  • Server kiểm tra headers và cho phép client tiếp tục gửi body

Ví 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

101
Switching Protocols

Ý nghĩa: Server đồng ý chuyển đổi giao thức theo yêu cầu của client.

Khi nào sử dụng:

  • Chuyển từ HTTP sang WebSocket
  • Upgrade từ HTTP/1.1 sang HTTP/2
  • Client gửi header Upgrade và server chấp nhận

Ví 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

102
Processing (WebDAV)

Ý nghĩa: Server đã nhận và đang xử lý request, nhưng chưa có response.

Khi nào sử dụng:

  • Request cần thời gian xử lý lâu
  • Tránh client timeout trong khi chờ
  • Thường dùng với WebDAV operations

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

103
Early Hints

Ý 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:

  • Server muốn gợi ý client preload resources (CSS, JS, fonts)
  • Cải thiện performance bằng cách load tài nguyên sớm
  • Sử dụng header Link với rel=preload

Ví 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

2xx: Mã trạng thái thành công (Success)

200
OK

Ý 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:

  • GET: Trả về dữ liệu được yêu cầu
  • POST: Trả về kết quả của action
  • PUT/PATCH: Trả về dữ liệu đã update
  • DELETE: Xác nhận đã xóa thành cô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

201
Created

Ý nghĩa: Request đã thành công và một resource mới đã được tạo.

Khi nào sử dụng:

  • POST request tạo mới resource thành công
  • Nên kèm header Location chỉ đến URL của resource mới
  • Response body thường chứa resource vừa tạo

Ví 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

202
Accepted

Ý nghĩa: Request đã được chấp nhận để xử lý, nhưng chưa hoàn thành.

Khi nào sử dụng:

  • Xử lý bất đồng bộ (async processing)
  • Request được đưa vào queue để xử lý sau
  • Batch processing operations

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

203
Non-Authoritative Information

Ý 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:

  • Proxy hoặc cache server đã modify response headers
  • Response đến từ cached copy, không phải origin server
  • Thông tin có thể không phải là mới nhất

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

204
No Content

Ý nghĩa: Request thành công nhưng không có nội dung để trả về.

Khi nào sử dụng:

  • DELETE request thành công, không cần trả về data
  • PUT/PATCH update thành công, không cần trả về resource
  • Action thành công nhưng không có thông tin bổ sung

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

205
Reset Content

Ý nghĩa: Request thành công, server yêu cầu client reset document view.

Khi nào sử dụng:

  • Sau khi submit form, yêu cầu browser clear form
  • Reset view về trạng thái ban đầu
  • User action cần refresh UI

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

206
Partial Content

Ý 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:

  • Client gửi header Range để request một phần
  • Resume download bị ngắt
  • Stream video/audio (load từng chunk)
  • Response có header Content-Range

Ví 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

207
Multi-Status (WebDAV)

Ý nghĩa: Response chứa nhiều status codes cho nhiều operations độc lập.

Khi nào sử dụng:

  • Batch operations với kết quả khác nhau
  • WebDAV PROPFIND, PROPPATCH operations
  • Response body là XML chứa nhiều status

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

208
Already Reported (WebDAV)

Ý 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:

  • Tránh lặp lại thông tin trong WebDAV multi-status
  • Resource đã được report, không cần list lại
  • Giảm kích thước response body

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

226
IM Used

Ý 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:

  • Delta encoding - chỉ gửi phần thay đổi
  • Server đã áp dụng transformations lên resource
  • Tiết kiệm bandwidth với HTTP delta encoding

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

3xx: Mã chuyển hướng (Redirection)

300
Multiple Choices

Ý 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:

  • Resource có nhiều representations (HTML, JSON, XML)
  • Nhiều phiên bản của cùng một resource
  • Cung cấp danh sách options cho client

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

301
Moved Permanently

Ý nghĩa: Resource đã được chuyển vĩnh viễn sang URL mới.

Khi nào sử dụng:

  • Restructure website, đổi URL vĩnh viễn
  • SEO: chuyển ranking sang URL mới
  • Browser và search engines sẽ cache redirect này
  • Phải kèm header Location

Ví 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

302
Found

Ý nghĩa: Resource tạm thời ở URL khác.

Khi nào sử dụng:

  • Redirect tạm thời, URL có thể thay đổi
  • A/B testing, feature flags
  • Maintenance mode redirect
  • Browser không cache redirect này

Ví dụ thực tế: Redirect đến trang login, temporary maintenance page.

URL test: https://material.playwrightvn.com/api/status-code/302.php

303
See Other

Ý nghĩa: Redirect đến URL khác sử dụng GET method.

Khi nào sử dụng:

  • Sau POST/PUT/DELETE, redirect đến GET page
  • Tránh duplicate submissions (PRG pattern)
  • Browser luôn dùng GET cho URL mới

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

304
Not Modified

Ý nghĩa: Resource không thay đổi, client có thể dùng cached version.

Khi nào sử dụng:

  • Client gửi If-Modified-Since hoặc If-None-Match
  • Resource chưa thay đổi kể từ lần request trước
  • Tiết kiệm bandwidth, dùng cache
  • Response không có body

Ví dụ thực tế: Browser cache images, CSS, JS files.

URL test: https://material.playwrightvn.com/api/status-code/304.php

307
Temporary Redirect

Ý nghĩa: Redirect tạm thời, giữ nguyên HTTP method.

Khi nào sử dụng:

  • Giống 302 nhưng đảm bảo không đổi method
  • POST request vẫn là POST khi redirect
  • Temporary redirect với method preservation

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

308
Permanent Redirect

Ý nghĩa: Redirect vĩnh viễn, giữ nguyên HTTP method.

Khi nào sử dụng:

  • Giống 301 nhưng đảm bảo không đổi method
  • POST request vẫn là POST khi redirect
  • Permanent redirect với method preservation

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

4xx: Lỗi từ phía Client (Client Errors)

400
Bad Request

Ý nghĩa: Server không thể hiểu request do lỗi cú pháp từ client.

Khi nào sử dụng:

  • Request body không đúng format (invalid JSON, XML)
  • Thiếu required parameters
  • Data validation failed
  • Malformed request syntax

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

401
Unauthorized

Ý nghĩa: Client chưa xác thực (authentication required).

Khi nào sử dụng:

  • Chưa đăng nhập
  • Token không hợp lệ hoặc hết hạn
  • Credentials sai
  • Phải kèm header WWW-Authenticate

Ví dụ thực tế: Truy cập API protected endpoint mà không có token, JWT expired.

Lưu ý: Mặc dù tên là "Unauthorized" nhưng thực chất là "Unauthenticated" (chưa xác thực).

URL test: https://material.playwrightvn.com/api/status-code/401.php

402
Payment Required

Ý nghĩa: Reserved cho tương lai, hiện chưa được dùng rộng rãi.

Khi nào sử dụng:

  • Digital payment systems
  • Paywall content
  • Subscription required

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

403
Forbidden

Ý nghĩa: Server hiểu request nhưng từ chối thực hiện (authorization failed).

Khi nào sử dụng:

  • Đã authenticate nhưng không có quyền truy cập
  • Insufficient permissions
  • IP bị block
  • Resource bị restricted

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

404
Not Found

Ý nghĩa: Server không tìm thấy resource được yêu cầu.

Khi nào sử dụng:

  • URL không tồn tại
  • Resource đã bị xóa
  • Endpoint không có trong API
  • ID không tồn tại trong database

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

405
Method Not Allowed

Ý nghĩa: HTTP method không được hỗ trợ cho resource này.

Khi nào sử dụng:

  • Gửi POST đến endpoint chỉ hỗ trợ GET
  • DELETE không được phép cho resource này
  • Phải kèm header 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

406
Not Acceptable

Ý 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:

  • Client yêu cầu format không hỗ trợ (ví dụ: Accept: application/pdf nhưng chỉ có JSON)
  • Content negotiation failed
  • Language, encoding không available

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

407
Proxy Authentication Required

Ý nghĩa: Client phải authenticate với proxy trước.

Khi nào sử dụng:

  • Proxy server yêu cầu authentication
  • Corporate proxy cần credentials
  • Phải kèm header Proxy-Authenticate

Ví 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

408
Request Timeout

Ý nghĩa: Server timeout chờ request từ client.

Khi nào sử dụng:

  • Client mất quá nhiều thời gian gửi request
  • Connection quá chậm
  • Keep-alive timeout

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

409
Conflict

Ý nghĩa: Request xung đột với trạng thái hiện tại của resource.

Khi nào sử dụng:

  • Duplicate entry (email đã tồn tại, username đã có)
  • Version conflict (optimistic locking)
  • Business logic conflict
  • Concurrent modification

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

410
Gone

Ý nghĩa: Resource đã bị xóa vĩnh viễn và không có forwarding address.

Khi nào sử dụng:

  • Resource đã intentionally removed
  • Không có redirect mới
  • Permanent deletion
  • SEO: báo search engines remove khỏi index

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

411
Length Required

Ý nghĩa: Server yêu cầu header Content-Length.

Khi nào sử dụng:

  • POST/PUT request thiếu Content-Length header
  • Server cần biết trước kích thước body
  • Upload validation

Ví dụ thực tế: Upload file mà không chỉ định size.

URL test: https://material.playwrightvn.com/api/status-code/411.php

412
Precondition Failed

Ý nghĩa: Một hoặc nhiều preconditions trong headers không được đáp ứng.

Khi nào sử dụng:

  • Conditional request failed (If-Match, If-Unmodified-Since)
  • ETag không khớp
  • Optimistic locking conflict

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

413
Payload Too Large

Ý nghĩa: Request body quá lớn, server từ chối xử lý.

Khi nào sử dụng:

  • Upload file vượt quá giới hạn
  • POST body quá lớn
  • Request size limit exceeded

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

414
URI Too Long

Ý nghĩa: URI dài hơn server có thể xử lý.

Khi nào sử dụng:

  • URL quá dài (thường > 2000 chars)
  • GET request với quá nhiều query parameters
  • Nên dùng POST thay vì GET với data lớn

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

415
Unsupported Media Type

Ý nghĩa: Server không hỗ trợ media type của request body.

Khi nào sử dụng:

  • Content-Type không được hỗ trợ
  • Upload file type không hợp lệ
  • Expected JSON nhưng nhận XML

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

416
Range Not Satisfiable

Ý nghĩa: Range header request không thể được đáp ứng.

Khi nào sử dụng:

  • Range vượt quá kích thước file
  • Invalid byte range
  • Phải kèm header Content-Range

Ví 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

417
Expectation Failed

Ý nghĩa: Server không thể đáp ứng yêu cầu trong Expect header.

Khi nào sử dụng:

  • Expect: 100-continue không được hỗ trợ
  • Server không thể đáp ứng expectation

Ví dụ thực tế: Client expect 100-continue nhưng server reject.

URL test: https://material.playwrightvn.com/api/status-code/417.php

418
I'm a teapot

Ý 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:

  • Easter egg, joke responses
  • Không nên dùng trong production
  • Từ HTCPCP (Hyper Text Coffee Pot Control Protocol)

Ví dụ thực tế: Một số APIs dùng làm joke hoặc Easter egg.

Fun fact: Đây là HTTP status code nổi tiếng nhất với mục đích hài hước. ☕🫖

URL test: https://material.playwrightvn.com/api/status-code/418.php

421
Misdirected Request

Ý nghĩa: Request được gửi đến server không thể tạo response.

Khi nào sử dụng:

  • HTTP/2 connection reuse issues
  • Server không cấu hình cho host này
  • Virtual hosting mismatch

Ví dụ thực tế: Load balancer gửi request đến sai server.

URL test: https://material.playwrightvn.com/api/status-code/421.php

422
Unprocessable Entity (WebDAV)

Ý nghĩa: Request đúng format nhưng có semantic errors.

Khi nào sử dụng:

  • Validation errors (business logic)
  • JSON đúng syntax nhưng data không hợp lệ
  • Required fields missing (ở mức business logic)
  • Invalid data relationships

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

423
Locked (WebDAV)

Ý nghĩa: Resource đang bị locked.

Khi nào sử dụng:

  • WebDAV resource đã bị lock
  • File đang được edit bởi user khác
  • Exclusive access required

Ví dụ thực tế: Document đang được edit, database row bị lock.

URL test: https://material.playwrightvn.com/api/status-code/423.php

424
Failed Dependency (WebDAV)

Ý nghĩa: Request failed vì một request trước đó failed.

Khi nào sử dụng:

  • Transaction dependencies
  • Multi-operation requests
  • Previous operation trong batch failed

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

425
Too Early

Ý nghĩa: Server không muốn xử lý request có khả năng bị replay.

Khi nào sử dụng:

  • TLS early data
  • Replay attack protection
  • 0-RTT requests

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

426
Upgrade Required

Ý nghĩa: Client cần chuyển sang protocol khác.

Khi nào sử dụng:

  • Force upgrade từ HTTP sang HTTPS
  • Upgrade lên HTTP/2
  • Protocol version quá cũ
  • Phải kèm header Upgrade

Ví 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

428
Precondition Required

Ý nghĩa: Server yêu cầu request phải có điều kiện (conditional).

Khi nào sử dụng:

  • Require If-Match header
  • Prevent lost update problem
  • Optimistic locking enforcement

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

429
Too Many Requests

Ý nghĩa: Client đã gửi quá nhiều requests trong khoảng thời gian cho phép.

Khi nào sử dụng:

  • Rate limiting triggered
  • API quota exceeded
  • DDoS protection
  • Nên kèm header Retry-After

Ví dụ thực tế: API rate limit 100 req/minute, spam prevention.

URL test: https://material.playwrightvn.com/api/status-code/429.php

431
Request Header Fields Too Large

Ý nghĩa: Headers quá lớn, server từ chối xử lý.

Khi nào sử dụng:

  • Cookie quá lớn
  • Headers vượt quá giới hạn
  • Token quá dài

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

451
Unavailable For Legal Reasons

Ý nghĩa: Resource không available vì lý do pháp lý.

Khi nào sử dụng:

  • Content bị chặn bởi chính phủ
  • DMCA takedown
  • Legal censorship
  • Geo-blocking vì luật pháp

Ví dụ thực tế: Content bị censor ở một số quốc gia, copyright violation.

Tên gọi: Lấy cảm hứng từ cuốn sách "Fahrenheit 451" về censorship.

URL test: https://material.playwrightvn.com/api/status-code/451.php

5xx: Lỗi từ phía Server (Server Errors)

500
Internal Server Error

Ý nghĩa: Lỗi chung khi server gặp lỗi không mong muốn.

Khi nào sử dụng:

  • Unhandled exception
  • Server crash
  • Database errors
  • Lỗi không xác định được cụ thể

Ví dụ thực tế: Null pointer exception, database connection failed, code bug.

URL test: https://material.playwrightvn.com/api/status-code/500.php

501
Not Implemented

Ý nghĩa: Server không hỗ trợ chức năng được yêu cầu.

Khi nào sử dụng:

  • HTTP method chưa được implement
  • Feature chưa phát triển
  • Server không có khả năng thực hiện request

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

502
Bad Gateway

Ý nghĩa: Server (proxy/gateway) nhận được invalid response từ upstream server.

Khi nào sử dụng:

  • Backend server down
  • Proxy không kết nối được upstream
  • Invalid response từ backend

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

503
Service Unavailable

Ý nghĩa: Server tạm thời không thể xử lý request.

Khi nào sử dụng:

  • Maintenance mode
  • Server overload
  • Temporary downtime
  • Nên kèm header Retry-After

Ví 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

504
Gateway Timeout

Ý nghĩa: Gateway/proxy timeout chờ response từ upstream server.

Khi nào sử dụng:

  • Backend server phản hồi quá chậm
  • Database query timeout
  • Upstream không phản hồi kịp thời

Ví dụ thực tế: Long-running query, slow API, backend not responding.

URL test: https://material.playwrightvn.com/api/status-code/504.php

505
HTTP Version Not Supported

Ý nghĩa: HTTP version trong request không được server hỗ trợ.

Khi nào sử dụng:

  • Client dùng HTTP version server không support
  • HTTP/3 request đến HTTP/1.1 server
  • Version incompatibility

Ví dụ thực tế: Old server không hỗ trợ HTTP/2.

URL test: https://material.playwrightvn.com/api/status-code/505.php

506
Variant Also Negotiates

Ý nghĩa: Server có internal configuration error trong content negotiation.

Khi nào sử dụng:

  • Circular reference trong variant negotiation
  • Configuration error
  • Server misconfiguration

Ví dụ thực tế: Content negotiation loop, server config sai.

URL test: https://material.playwrightvn.com/api/status-code/506.php

507
Insufficient Storage (WebDAV)

Ý nghĩa: Server không đủ storage để hoàn thành request.

Khi nào sử dụng:

  • Disk full
  • Storage quota exceeded
  • Upload failed vì hết dung lượ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

508
Loop Detected (WebDAV)

Ý nghĩa: Server phát hiện infinite loop khi xử lý request.

Khi nào sử dụng:

  • Infinite redirect loop
  • Circular dependency
  • WebDAV binding loop

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

510
Not Extended

Ý nghĩa: Request cần extensions để server có thể thực hiện.

Khi nào sử dụng:

  • Client cần gửi thêm thêm extensions
  • HTTP extension framework
  • Additional protocol features required

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

511
Network Authentication Required

Ý nghĩa: Client cần authenticate để có quyền truy cập network.

Khi nào sử dụng:

  • Captive portal (WiFi login pages)
  • Network access control
  • Public WiFi authentication

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