~/devtools / http-status
tool::http-status

HTTPステータス
コード

1xxから5xxまでの全HTTPステータスコードを説明付きで参照・検索できます。

ad · 728×90
61 / 61
Continue
Client should continue with the request.
1xx
Switching Protocols
Server is switching protocols as requested.
1xx
Processing
Server has received the request but has not yet completed it.
1xx
Early Hints
Used to preload resources while the server is still processing.
1xx
OK
The request has succeeded.
2xx
Created
The request has been fulfilled and a new resource has been created.
2xx
Accepted
The request has been accepted but not yet acted upon.
2xx
Non-Authoritative Information
The response is from a transforming proxy, not the origin server.
2xx
No Content
The server successfully processed the request but returns no content.
2xx
Reset Content
The server processed the request; the client should reset the document view.
2xx
Partial Content
The server is returning partial content due to a Range header.
2xx
Multi-Status
Multiple status codes for multiple independent operations (WebDAV).
2xx
Already Reported
Members of a DAV binding have already been enumerated.
2xx
IM Used
The server fulfilled the request using instance manipulations.
2xx
Multiple Choices
Multiple options for the requested resource.
3xx
Moved Permanently
The resource has permanently moved to a new URL.
3xx
Found
The resource is temporarily at a different URL.
3xx
See Other
Redirect to another resource using GET.
3xx
Not Modified
The cached version is still valid; no new content to return.
3xx
Temporary Redirect
Temporary redirect preserving the original HTTP method.
3xx
Permanent Redirect
Permanent redirect preserving the original HTTP method.
3xx
Bad Request
The server could not understand the request due to invalid syntax.
4xx
Unauthorized
Authentication is required and has failed or not been provided.
4xx
Payment Required
Reserved for future use; some services use it for payment walls.
4xx
Forbidden
The server refuses to fulfill the request (authenticated but unauthorized).
4xx
Not Found
The requested resource could not be found.
4xx
Method Not Allowed
The HTTP method is not supported for this resource.
4xx
Not Acceptable
No content matching the Accept headers is available.
4xx
Proxy Authentication Required
Authentication with a proxy is required.
4xx
Request Timeout
The server timed out waiting for the request.
4xx
Conflict
The request conflicts with the current state of the server.
4xx
Gone
The resource has been permanently deleted and will not return.
4xx
Length Required
The Content-Length header is required but not provided.
4xx
Precondition Failed
One or more conditions in the request headers evaluated to false.
4xx
Content Too Large
The request body exceeds the server's size limit.
4xx
URI Too Long
The request URI is longer than the server can process.
4xx
Unsupported Media Type
The media type of the request is not supported.
4xx
Range Not Satisfiable
The range specified in the Range header cannot be fulfilled.
4xx
Expectation Failed
The expectation in the Expect header cannot be met.
4xx
I'm a Teapot
The server refuses to brew coffee; it is a teapot (RFC 2324).
4xx
Misdirected Request
The request was directed at a server unable to produce a response.
4xx
Unprocessable Content
The request is well-formed but contains semantic errors.
4xx
Locked
The resource being accessed is locked (WebDAV).
4xx
Failed Dependency
The request failed because a previous request failed (WebDAV).
4xx
Too Early
The server is unwilling to process a potentially replayed request.
4xx
Upgrade Required
The client should switch to a different protocol.
4xx
Precondition Required
The server requires the request to be conditional.
4xx
Too Many Requests
The user has sent too many requests in a given time (rate limiting).
4xx
Request Header Fields Too Large
Request headers are too large for the server to process.
4xx
Unavailable For Legal Reasons
The resource is unavailable due to legal restrictions.
4xx
Internal Server Error
The server encountered an unexpected condition.
5xx
Not Implemented
The server does not support the requested functionality.
5xx
Bad Gateway
The gateway received an invalid response from an upstream server.
5xx
Service Unavailable
The server is temporarily unable to handle the request.
5xx
Gateway Timeout
The gateway did not receive a timely response from an upstream server.
5xx
HTTP Version Not Supported
The HTTP version used in the request is not supported.
5xx
Variant Also Negotiates
A circular reference in transparent content negotiation.
5xx
Insufficient Storage
The server is unable to store the representation (WebDAV).
5xx
Loop Detected
An infinite loop was detected while processing the request (WebDAV).
5xx
Not Extended
Further extensions to the request are required.
5xx
Network Authentication Required
Network authentication is required before accessing resources.
5xx
ad · 300×250
// about this tool

HTTPステータスコードについて

HTTPステータスコードは、クライアントのリクエストに対するサーバーの応答結果を3桁の数字で表します。最初の桁が応答の分類を示します:1xxは情報、2xxは成功、3xxはリダイレクト、4xxはクライアントエラー、5xxはサーバーエラーです。このシステムはHTTP/1.0(RFC 1945、1996年)で導入され、現在のHTTP/2やHTTP/3にも引き継がれています。

実務で最もよく見かけるコードは200(OK)、201(Created)、301(Moved Permanently)、302(Found)、400(Bad Request)、401(Unauthorized)、403(Forbidden)、404(Not Found)、500(Internal Server Error)です。401と403の違い(認証失敗vs認可拒否)や301と302の違い(永続的vs一時的リダイレクト)は、API設計とSEOに直接影響します。

このツールは1xx〜5xxの標準HTTPステータスコードをカテゴリタブで整理し、コード番号や名前でリアルタイム検索できます。コードをクリックするとクリップボードにコピーされます。REST API設計、サーバーデバッグ、Web開発学習のクイックリファレンスとして活用してください。

主な使用例
  • 馴染みのないHTTPステータスコードの正確な意味を調べる
  • REST API設計時の正しいステータスコード選択
  • サーバーやサードパーティAPIのHTTPエラーのデバッグ
  • リダイレクトコードの正しい使い方を確認(301 vs 302 vs 307 vs 308)
  • 認証エラーの区別を確認(401 vs 403)
よくある質問
Q. 401と403の違いは何ですか?
401 Unauthorizedは「認証(Authentication)が必要か失敗した」ことを意味します。サーバーがあなたが誰かを知らない状態です。403 Forbiddenは「認証は成功したが、このリソースへのアクセス権限がない(Authorization失敗)」ことを意味します。誰かは分かっているが許可しないという状態です。
Q. 301と302と307と308の使い分けは?
301(Moved Permanently)と308(Permanent Redirect)は永続的なURL変更に使用し、検索エンジンはリンク評価を新URLに移します。302(Found)と307(Temporary Redirect)は一時的なリダイレクトで、検索エンジンは元のURLをインデックスし続けます。307/308は301/302と異なりリダイレクト時のHTTPメソッドを変更しません。
Q. 418 I'm a Teapotは実際に使われますか?
RFC 2324でエイプリルフールのジョークとして定義されましたが、IANAのHTTPステータスコードレジストリに登録されています。実際のAPIでユーモアある拒否レスポンスとして使われることもありますが、本番環境での使用は推奨されません。技術的には有効で広く認知されています。