tool::http-status-detail
503 Service Unavailable
The server is temporarily unable to handle the request.
ステータスコード
503
名前
Service Unavailable
カテゴリ
5xx詳細説明
HTTP 503 Service Unavailableは、サーバーが一時的にリクエストを処理できないことを示します。過負荷、メンテナンス、または計画的なダウンタイムが原因です。502とは異なり、サーバー自体は正常ですが、現在サービスの提供ができない状態です。Retry-Afterヘッダーを通じて、クライアントにいつ再試行すべきかを伝えることができます。
主な原因
- ▸サーバーメンテナンスまたは計画的なダウンタイム
- ▸トラフィック急増によるサーバーの過負荷
- ▸Rate limitingによりリクエストが拒否された場合
- ▸バックエンドの依存先(DB、外部API)が応答しない場合
- ▸デプロイ中のサーバー再起動期間
解決方法
- 1.Retry-Afterヘッダーがある場合は、指定された時間後に再試行してください
- 2.サーバーリソースを確認し、必要に応じてスケールアップ/アウトしてください
- 3.ロードバランサーを使用してトラフィックを分散してください
- 4.メンテナンス中であれば、ユーザーに予想復旧時間を案内してください
- 5.Auto-scalingを設定してトラフィック急増に自動対応してください
関連HTTPヘッダー
Retry-AfterCache-Controlレスポンス例
HTTP/1.1 503 Service Unavailable
Retry-After: 300
Content-Type: application/json
{"error":"service_unavailable","message":"Server is under maintenance. Please retry after 5 minutes."}関連ステータスコード
500Internal Server ErrorThe server encountered an unexpected condition.→501Not ImplementedThe server does not support the requested functionality.→502Bad GatewayThe gateway received an invalid response from an upstream server.→504Gateway TimeoutThe gateway did not receive a timely response from an upstream server.→505HTTP Version Not SupportedThe HTTP version used in the request is not supported.→
ad · 300×250
// related tools