YAML

HTTPステータスコード - YAML

HTTPステータスコードは、Webサーバーがクライアントからのリクエストに対して返す3桁の数値コードで、リクエストの処理結果を示します。IANA(Internet Assigned Numbers Authority)が管理するレジストリで定義され、1xx(情報)、2xx(成功)、3xx(リダイレクト)、4xx(クライアントエラー)、5xx(サーバーエラー)の5つのカテゴリに分類されます。このコードはWeb開発やAPI設計において不可欠な要素であり、適切なエラーハンドリングやデバッグに活用されています。

HTTP Web インターネット プロトコル ステータスコード RFC
- code: "100"
  slug: "continue"
  name: "Continue"
  description: "リクエストの初期部分が受信され、クライアントは続行すべきことを示します。"
  category: "1xx 情報"
  reference: "RFC 9110, Section 15.2.1"
- code: "101"
  slug: "switching-protocols"
  name: "Switching Protocols"
  description: "サーバーがプロトコルの切り替えに同意したことを示します。"
  category: "1xx 情報"
  reference: "RFC 9110, Section 15.2.2"
- code: "102"
  slug: "processing"
  name: "Processing"
  description: "サーバーがリクエストを受信し、処理中であることを示します。"
  category: "1xx 情報"
  reference: "RFC 2518"
- code: "103"
  slug: "early-hints"
  name: "Early Hints"
  description: "最終レスポンスの前にリンクヘッダーを事前送信するために使用されます。"
  category: "1xx 情報"
  reference: "RFC 8297"
- code: "104"
  slug: "upload-resumption-supported"
  name: "Upload Resumption Supported"
  description: "サーバーがアップロード再開をサポートしていることを示します(暫定登録)。"
  category: "1xx 情報"
  reference: "draft-ietf-httpbis-resumable-upload-05"
- code: "200"
  slug: "ok"
  name: "OK"
  description: "リクエストが成功したことを示す標準的なレスポンスです。"
  category: "2xx 成功"
  reference: "RFC 9110, Section 15.3.1"
- code: "201"
  slug: "created"
  name: "Created"
  description: "リクエストが成功し、新しいリソースが作成されたことを示します。"
  category: "2xx 成功"
  reference: "RFC 9110, Section 15.3.2"
- code: "202"
  slug: "accepted"
  name: "Accepted"
  description: "リクエストが受理されたが、処理が完了していないことを示します。"
  category: "2xx 成功"
  reference: "RFC 9110, Section 15.3.3"
- code: "203"
  slug: "non-authoritative-information"
  name: "Non-Authoritative Information"
  description: "返されたメタ情報がオリジンサーバーからのものではないことを示します。"
  category: "2xx 成功"
  reference: "RFC 9110, Section 15.3.4"
- code: "204"
  slug: "no-content"
  name: "No Content"
  description: "サーバーがリクエストを正常に処理したが、コンテンツを返さないことを示します。"
  category: "2xx 成功"
  reference: "RFC 9110, Section 15.3.5"
- code: "205"
  slug: "reset-content"
  name: "Reset Content"
  description: "クライアントがドキュメントビューをリセットすべきことを示します。"
  category: "2xx 成功"
  reference: "RFC 9110, Section 15.3.6"
- code: "206"
  slug: "partial-content"
  name: "Partial Content"
  description: "サーバーがリソースの部分的なリクエストを処理したことを示します。"
  category: "2xx 成功"
  reference: "RFC 9110, Section 15.3.7"
- code: "207"
  slug: "multi-status"
  name: "Multi-Status"
  description: "複数のリソースに対する複数のステータスコードを含むレスポンスです。"
  category: "2xx 成功"
  reference: "RFC 4918"
- code: "208"
  slug: "already-reported"
  name: "Already Reported"
  description: "DAVバインディングの要素が既に報告されていることを示します。"
  category: "2xx 成功"
  reference: "RFC 5842"
- code: "226"
  slug: "im-used"
  name: "IM Used"
  description: "サーバーがリソースに対するGETリクエストを処理し、インスタンス操作が適用されたことを示します。"
  category: "2xx 成功"
  reference: "RFC 3229"
- code: "300"
  slug: "multiple-choices"
  name: "Multiple Choices"
  description: "リクエストに対して複数の選択肢があることを示します。"
  category: "3xx リダイレクト"
  reference: "RFC 9110, Section 15.4.1"
- code: "301"
  slug: "moved-permanently"
  name: "Moved Permanently"
  description: "リソースが永久に新しいURIに移動したことを示します。"
  category: "3xx リダイレクト"
  reference: "RFC 9110, Section 15.4.2"
- code: "302"
  slug: "found"
  name: "Found"
  description: "リソースが一時的に異なるURIに存在することを示します。"
  category: "3xx リダイレクト"
  reference: "RFC 9110, Section 15.4.3"
- code: "303"
  slug: "see-other"
  name: "See Other"
  description: "レスポンスが異なるURIで見つけられることを示します。"
  category: "3xx リダイレクト"
  reference: "RFC 9110, Section 15.4.4"
- code: "304"
  slug: "not-modified"
  name: "Not Modified"
  description: "リソースが最後のリクエスト以降変更されていないことを示します。"
  category: "3xx リダイレクト"
  reference: "RFC 9110, Section 15.4.5"
- code: "305"
  slug: "use-proxy"
  name: "Use Proxy"
  description: "リクエストされたリソースはプロキシ経由でアクセスする必要があります。"
  category: "3xx リダイレクト"
  reference: "RFC 9110, Section 15.4.6"
- code: "306"
  slug: "unused"
  name: "(Unused)"
  description: "このステータスコードは現在使用されていません。"
  category: "3xx リダイレクト"
  reference: "RFC 9110, Section 15.4.7"
- code: "307"
  slug: "temporary-redirect"
  name: "Temporary Redirect"
  description: "リクエストを異なるURIで繰り返すべきことを示します。"
  category: "3xx リダイレクト"
  reference: "RFC 9110, Section 15.4.8"
- code: "308"
  slug: "permanent-redirect"
  name: "Permanent Redirect"
  description: "リソースが永久に新しいURIに移動し、リクエストメソッドを維持すべきことを示します。"
  category: "3xx リダイレクト"
  reference: "RFC 9110, Section 15.4.9"
- code: "400"
  slug: "bad-request"
  name: "Bad Request"
  description: "サーバーが不正なリクエストを理解できないことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.1"
- code: "401"
  slug: "unauthorized"
  name: "Unauthorized"
  description: "リソースへのアクセスに認証が必要であることを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.2"
- code: "402"
  slug: "payment-required"
  name: "Payment Required"
  description: "将来の使用のために予約されたステータスコードです。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.3"
- code: "403"
  slug: "forbidden"
  name: "Forbidden"
  description: "サーバーがリクエストを拒否したことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.4"
- code: "404"
  slug: "not-found"
  name: "Not Found"
  description: "サーバーが要求されたリソースを見つけられなかったことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.5"
- code: "405"
  slug: "method-not-allowed"
  name: "Method Not Allowed"
  description: "リクエストメソッドがターゲットリソースでサポートされていないことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.6"
- code: "406"
  slug: "not-acceptable"
  name: "Not Acceptable"
  description: "リクエストのAcceptヘッダーを満たすコンテンツがないことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.7"
- code: "407"
  slug: "proxy-authentication-required"
  name: "Proxy Authentication Required"
  description: "クライアントがプロキシで認証する必要があることを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.8"
- code: "408"
  slug: "request-timeout"
  name: "Request Timeout"
  description: "サーバーがクライアントからのリクエストを待つ間にタイムアウトしたことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.9"
- code: "409"
  slug: "conflict"
  name: "Conflict"
  description: "リクエストがリソースの現在の状態と競合していることを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.10"
- code: "410"
  slug: "gone"
  name: "Gone"
  description: "リクエストされたリソースが永久に利用できないことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.11"
- code: "411"
  slug: "length-required"
  name: "Length Required"
  description: "リクエストにContent-Lengthヘッダーが必要であることを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.12"
- code: "412"
  slug: "precondition-failed"
  name: "Precondition Failed"
  description: "リクエストヘッダーの前提条件が満たされなかったことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.13"
- code: "413"
  slug: "content-too-large"
  name: "Content Too Large"
  description: "リクエストエンティティがサーバーの許容サイズを超えていることを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.14"
- code: "414"
  slug: "uri-too-long"
  name: "URI Too Long"
  description: "リクエストURIがサーバーの許容長さを超えていることを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.15"
- code: "415"
  slug: "unsupported-media-type"
  name: "Unsupported Media Type"
  description: "リクエストのメディアタイプがサーバーでサポートされていないことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.16"
- code: "416"
  slug: "range-not-satisfiable"
  name: "Range Not Satisfiable"
  description: "リクエストのRangeヘッダーで指定された範囲が満たせないことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.17"
- code: "417"
  slug: "expectation-failed"
  name: "Expectation Failed"
  description: "サーバーがExpectヘッダーの要件を満たせないことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.18"
- code: "418"
  slug: "im-a-teapot"
  name: "(Unused)"
  description: "このステータスコードは現在使用されていません。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.19"
- code: "421"
  slug: "misdirected-request"
  name: "Misdirected Request"
  description: "リクエストが応答できないサーバーに送信されたことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.20"
- code: "422"
  slug: "unprocessable-content"
  name: "Unprocessable Content"
  description: "リクエストは構文的に正しいが、意味的なエラーがあることを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.21"
- code: "423"
  slug: "locked"
  name: "Locked"
  description: "リソースがロックされていてアクセスできないことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 4918"
- code: "424"
  slug: "failed-dependency"
  name: "Failed Dependency"
  description: "依存するリクエストが失敗したためにリクエストが失敗したことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 4918"
- code: "425"
  slug: "too-early"
  name: "Too Early"
  description: "サーバーがリプレイ攻撃のリスクがあるリクエストの処理を拒否していることを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 8470"
- code: "426"
  slug: "upgrade-required"
  name: "Upgrade Required"
  description: "クライアントが異なるプロトコルに切り替える必要があることを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 9110, Section 15.5.22"
- code: "428"
  slug: "precondition-required"
  name: "Precondition Required"
  description: "サーバーがリクエストを条件付きにすることを要求していることを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 6585"
- code: "429"
  slug: "too-many-requests"
  name: "Too Many Requests"
  description: "ユーザーが一定時間内に多すぎるリクエストを送信したことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 6585"
- code: "431"
  slug: "request-header-fields-too-large"
  name: "Request Header Fields Too Large"
  description: "リクエストヘッダーフィールドが大きすぎることを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 6585"
- code: "451"
  slug: "unavailable-for-legal-reasons"
  name: "Unavailable For Legal Reasons"
  description: "法的理由によりリソースにアクセスできないことを示します。"
  category: "4xx クライアントエラー"
  reference: "RFC 7725"
- code: "500"
  slug: "internal-server-error"
  name: "Internal Server Error"
  description: "サーバーで予期しないエラーが発生したことを示します。"
  category: "5xx サーバーエラー"
  reference: "RFC 9110, Section 15.6.1"
- code: "501"
  slug: "not-implemented"
  name: "Not Implemented"
  description: "サーバーがリクエストメソッドをサポートしていないことを示します。"
  category: "5xx サーバーエラー"
  reference: "RFC 9110, Section 15.6.2"
- code: "502"
  slug: "bad-gateway"
  name: "Bad Gateway"
  description: "サーバーがゲートウェイとして動作中に無効なレスポンスを受信したことを示します。"
  category: "5xx サーバーエラー"
  reference: "RFC 9110, Section 15.6.3"
- code: "503"
  slug: "service-unavailable"
  name: "Service Unavailable"
  description: "サーバーが一時的にリクエストを処理できないことを示します。"
  category: "5xx サーバーエラー"
  reference: "RFC 9110, Section 15.6.4"
- code: "504"
  slug: "gateway-timeout"
  name: "Gateway Timeout"
  description: "ゲートウェイがアップストリームサーバーからの応答を時間内に受信できなかったことを示します。"
  category: "5xx サーバーエラー"
  reference: "RFC 9110, Section 15.6.5"
- code: "505"
  slug: "http-version-not-supported"
  name: "HTTP Version Not Supported"
  description: "サーバーがリクエストで使用されたHTTPバージョンをサポートしていないことを示します。"
  category: "5xx サーバーエラー"
  reference: "RFC 9110, Section 15.6.6"
- code: "506"
  slug: "variant-also-negotiates"
  name: "Variant Also Negotiates"
  description: "サーバーに内部構成エラーがあることを示します。"
  category: "5xx サーバーエラー"
  reference: "RFC 2295"
- code: "507"
  slug: "insufficient-storage"
  name: "Insufficient Storage"
  description: "サーバーにリクエストを完了するための十分なストレージがないことを示します。"
  category: "5xx サーバーエラー"
  reference: "RFC 4918"
- code: "508"
  slug: "loop-detected"
  name: "Loop Detected"
  description: "サーバーがリクエストの処理中に無限ループを検出したことを示します。"
  category: "5xx サーバーエラー"
  reference: "RFC 5842"
- code: "510"
  slug: "not-extended"
  name: "Not Extended (OBSOLETED)"
  description: "リクエストを処理するために追加の拡張が必要であることを示します(廃止)。"
  category: "5xx サーバーエラー"
  reference: "RFC 2774"
- code: "511"
  slug: "network-authentication-required"
  name: "Network Authentication Required"
  description: "クライアントがネットワークアクセスを得るために認証が必要であることを示します。"
  category: "5xx サーバーエラー"
  reference: "RFC 6585"