0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【HTTP】ステータスコード【エラー番号】

Posted at

エラーページの種類

HTTPは処理の成功不成功などを示す3桁の番号がついている。それを「ステータスコード」という。
百の位は「1~5」で正常に終了したかどうか、十の位と一の位は、詳細な情報を示す。
エラーと定義されているのは400番台と500番台。エラーページを設定するには、この番号で表示されるものと定義する。

ステータスコードの百の位の意味

百の位 意味
100番台 処理継続中
200番台 処理に成功
300番台 リダイレクト、別のURLに移動
400番台 リクエストに問題があるエラー
500番台 サーバーの処理に問題があるエラー

エラーの場合

番号 意味
400 Bad Request リクエストが不正
401 Unauthorized 認証が必要
402 Payment Required 支払いが必要
403 Forbidden 禁止操作、アクセス権がないなど
404 Not Found ページが見つからない
405 Method Not Allowed 指定された操作が禁止されている
500 Internal Server Error 内部サーバーエラー、プログラムの実行に失敗したなど
501 Not Implemented その機能は実装されていない
502 Bad Gateway プロキシサーバなどが正しくない
503 Service Unavailable サービスを提供不可。負荷が高くなりすぎていて接続拒否したなど
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?