HTTP 200 OK とは?
HTTP 200 OK の解説と、CI/CD やデプロイで見かけたときの意味。
HTTP 200 は、完了した HTTP リクエストに対する標準的な成功レスポンスです。
意味
200 ステータスは、サーバーがリクエストを処理し、期待されるボディを返していることを意味します。GET や多くの POST リクエストに対する「すべて正常」の基本レスポンスです。
CI/CD で見かけるとき
CI のスモークテストや deploy のヘルスチェックは通常、deploy を正常と判定する前にサービス URL から 200 を確認します。curl -f は 2xx 以外でステップを失敗させるため、200 が青信号です。
重要なポイント
- 200 はリクエストが成功したことを意味します。
- ヘルスチェックは 200 を確認して deploy を検証します。
curl -fは 2xx 以外を失敗として扱います。
関連ガイド
What Is HTTP? The Protocol Behind Web RequestsHTTP is the request-response protocol that web clients and servers use to exchange data. Learn what HTTP is a…
What Is a Health Check Endpoint? Proving a Service Is ReadyA health check endpoint is a URL that reports whether a service is alive and ready to serve. Learn what it is…
What Is an HTTP Status Code? The Result of Every RequestAn HTTP status code is a number the server returns to report the outcome of a request. Learn what status code…