Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Reference
  4. HTTP response status codes
  5. 511 Network Authentication Required

511 Network Authentication Required

The HTTP511 Network Authentication Requiredserver error response status code indicates that the client needs to authenticate to gain network access.This status is not generated by origin servers, but by interceptingproxies that control access to a network.

Network operators sometimes require some authentication, acceptance of terms, or other user interaction before granting access (for example in an internet café or at an airport).They often identify clients who have not done so using their Media Access Control (MAC) addresses.

Status

http
511 Network Authentication Required

Examples

511 response for a GET request

In the following example, a client tries to access a resource on a network.The request is not authenticated, and a proxy sends a511 status code to prompt the visitor to log in.The511 ensures that non-browser clients will not interpret the response as being from the origin server.Browsers are redirected automatically via the<meta> tag after 10 seconds, or by clicking the link in the response body:

http
GET /document HTTP/1.1Host: example.com
http
HTTP/1.1 511 Network Authentication RequiredContent-Type: text/html<html lang="en-US">  <head>    <title>Network Authentication Required</title>    <meta http-equiv="refresh" content="10; url=https://login.example.net/">  </head>  <body>      <p>You need to <a href="https://login.example.net/">authenticate with the local network</a> in order to gain access.</p>  </body></html>

Specifications

Specification
RFC 6585
# section-6

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp