Skip to content

エラー

shinp.info APIの全てのエラーレスポンスは、RFC 9457 Problem Details 形式で返却されます。

レスポンス形式

エラーレスポンスの Content-Typeapplication/problem+json です。

json
{
    "type": "https://shinp.info/problems/not-found",
    "title": "Not Found",
    "status": 404,
    "detail": "指定されたリソースが見つかりません。"
}

フィールド

フィールド説明
typestring問題の種類を識別するURI
titlestring問題の簡潔な説明
statusnumberHTTPステータスコード
detailstring問題の詳細な説明

主なエラーコード

ステータスタイトル説明
400Bad Requestリクエストの形式が不正です
401Unauthorized認証に失敗しました
403Forbiddenアクセス権限がありません
404Not Foundリソースが見つかりません
409Conflictリソースが競合しています
422Unprocessable Entityバリデーションエラーです
429Too Many Requestsレート制限を超過しました
500Internal Server Errorサーバー内部エラーです

shinp.info API Documentation