メインコンテンツまでスキップ

6) SKMS 応答ステータスコードの定義

SKMS 応答ステータスコードの定義

説明

Response Code

Status CodeStatus MessageDescription
200OKリクエスト成功
400Bad Requestクライアントのリクエストが無効です(例:必須値の入力が欠落しています)
401Unauthorized承認されていません(認証失敗)
403Forbidden許可されていません(認証はされましたが、該当ユーザーに許可されていないリクエストの場合)
404Not Foundリクエストされたリソースがありません
500Internal Server Errorリクエストを処理中に内部サーバーエラーが発生しました

Response Error JSON format

NameRequiredTypeDescription
coderequiredintエラーコード(Error Code 定義参照)
messagerequiredstringエラーメッセージ
detailstringエラーの詳細内容(エラーによって詳細項目は異なる場合があります)

Error Code

  • エラーコードの定義
error codemessageDescriptionStatus Code
40003Failed create headerヘッダーの生成に失敗しました400
40004Failed extract headerヘッダー抽出失敗400
40005Batch/Scheduler Failedバッチ/スケジューラの失敗400
40006oAuth connection failed認証接続失敗400
40007Integrated Log Service Failed統合ログサービスの失敗400
40008Key Vault Service Failedキーボルトサービスの失敗400
40009Service Linker Key Manager is not usedキー データ 連携 失敗400
40011Unable to AzureInfoazure 情報の取得に失敗しました400
40012Relay client accessToken Failedリレー トークンの更新に失敗しました400
40013Key not found in the keyVaultキーボルトキーの取得に失敗しました400
40101Invalid token無効なトークン401
40102No matching company ID found一致する company_id がありません400
40103Failed Duplicate domain重複したドメイン400
40104No matching domains found一致するドメインがありません400
40105Required value is missing必須値なし400
40107No matching license found一致するライセンスがありません400
40108Unavailable License使用できないライセンス400
40110HeaderKey is Empty一致するヘッダーキーがありません400
40111EncryptionKey is Empty一致する暗号化キーがありません
- DS_KEY_ENCRYPTION_KEY
400
40112No matching SCI ServerID found一致するSCIサーバーIDがありません400
40301You don't have permission this serviceアクセス権がありません401
50001An unexpected error has occurred in the internal system内部サービスエラー500
50002SCI Connection failedSCIサーバー接続テスト失敗500
50003Service Linker Name is Not ExistSHIELDRM サービス名が存在しません500
50004Service Linker is UnusedSHIELDRMサービス未使用500
50005SCI Service Linker registration FailedSCIサーバー連携システム登録失敗500

Examples

Response

Status code : 400 Bad Request

{
"code": 40013,
"message": "Key not found in the keyVault",
"detail": "keyId : 0000009"
}

{
"code": 40003,
"message": "Failed create header",
"detail": "4020"
}
  • Status code : 500 INTERNAL_SERVER_ERROR
{
"code": 50001,
"message": "An unexpected error has occurred in the internal system",
"detail": "I/O error on GET request for \"https://devkms.softcamp.co.kr:8080/drm/7FDKQsEK-QVGKyXA2-fx1LxIzy-SNIre0s9/key/0000003\": Connect to devkms.softcamp.co.kr:8080 [devkms.softcamp.co.kr/10.14.10.171] failed: Connection timed out: connect; nested exception is org.apache.http.conn.HttpHostConnectException: Connect to devkms.softcamp.co.kr:8080 [devkms.softcamp.co.kr/10.14.10.171] failed: Connection timed out: connect"
}