エラーレスポンスの title をエラータイプごとに統一
エラーレスポンスの title を、type ごとに固定された文言に統一しました。同じ type であれば常に同じ title が返り、発生ごとに変わる情報は detail に含まれます。
破壊的変更
title の文言が次のように変わりました。
| ステータス | type | 変更前の title | 変更後の title |
|---|---|---|---|
400 | https://feed.storyhub.studio/probs/validation | Area Resolution Failed | Validation Error |
401 | https://feed.storyhub.studio/probs/auth | Invalid API Key | Unauthorized |
403 | https://feed.storyhub.studio/probs/forbidden | Content Not Served | Forbidden |
404 | https://feed.storyhub.studio/probs/not-found | Scenario Not Found | Resource Not Found |
404 | https://feed.storyhub.studio/probs/not-found | Algorithm Not Found | Resource Not Found |
影響
titleの文字列で処理を分岐している場合は、typeでの判定に変更してください。typeは変更されておらず、今後もエラータイプごとに不変です。titleは表示用途のみを想定しています。- シナリオ未設定とアルゴリズム未検出はいずれも
Resource Not Foundになります。両者を区別する必要がある場合はdetail、または送信したパラメーターで判断してください。 - ステータスコードと
typeに変更はありません。
API が返す type と title の一覧は エラーハンドリング をご覧ください。