1
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 1 year has passed since last update.

これだけは覚えておきたいステータスコード

Last updated at Posted at 2024-04-26

Web開発において、これだけは覚えておきたいステータスコードまとめ。これが分かれば、最低限、仕事についていける。

200系

成功

200 OK

リクエストに成功した

201 Created

データの作成に成功した。何かレコードを追加するようなAPIのレスポンスに201を設定することがある。

300系

別ページに遷移したと思えばOK

301 Moved Permanently

302 Found

400系

リクエストがおかしい。クライアント側に問題がある。

400 Bad Request

リクエストパラメータが不正

401 Unauthorized

認証情報が不正

403 Forbidden

アクセス権限なし(認可不足)

404 Not Found

ページが見つからない

500系

サーバーエラー

500 Internal Server Error

サーバー側がシステムエラー(バグ)

502 Bad Gateway

サーバーがダウンしてるかも?ネットワークに問題がありそう

504 Gateway Timeout

サーバーからの応答がない。ネットワークに問題がありそう

1
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
1
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?