# 錯誤代碼說明-提示詞管理類

回應格式見 [例外狀況處理](https://privstation-docs.apmic.ai/latest/privai-400/例外狀況處理.md)。

| Error Code | HTTP Status | Scenario | Error Message |
| --- | --- | --- | --- |
| `PROMPT_001` | 404 | 指定的 Prompt 不存在、已被刪除，或不屬於目前的 API Key。適用於取得、刪除、自動／手動優化提示詞，以及 Chat Completions 帶入 `prompt_id` 時 | Prompt not found. |
| `PROMPT_002` | 409 | 「新增提示詞」時指定的 `id` 已存在。Prompt ID 在整個系統中必須唯一，即使該 ID 屬於其他 API Key 也會回傳此錯誤 | Prompt ID already exists. |

各錯誤代碼可能出現在哪些端點，請見 [錯誤代碼說明-API Endpoint 特定錯誤情境](https://privstation-docs.apmic.ai/latest/privai-400/錯誤代碼說明-api-endpoint-特定錯誤情境.md)。
