401 Unauthorized
HTTP 401 Unauthorized
は、有効な認証資格が不足していることによりリクエストが適用されないことを示すクライアントエラーのレスポンスコードです。
このステータスは、正しい認証方法を含む WWW-Authenticate
ヘッダーとともに送信されます。
このステータスは 403
に似ていますが、この場合は再認証が可能です。
ステータス
401 Unauthorized
例
HTTP/1.1 401 Unauthorized Date: Wed, 21 Oct 2015 07:28:00 GMT WWW-Authenticate: Basic realm="Access to staging site"
仕様
仕様 | タイトル |
---|---|
RFC 7235, セクション 3.1: 401 Unauthorized | HTTP/1.1: Authentication |
ブラウザー互換性
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.