# 錯誤代碼說明-傳遞參數驗證類

| **Error Code** | **HTTP Status** | **Scenario** | **Error Message** |
| --- | --- | --- | --- |
| `VAL_001`  | 422 | Cannot provide both before and after | Cannot provide both 'before' and 'after' simultaneously |
| `VAL_002` | 404 | Cannot find ID provided from after or before | ID not found from 'before' or 'after': {cursor_id} |
| `VAL_003` | 422 | Cannot provide both prompt and prompt_id | Cannot provide both 'prompt' and 'prompt_id' simultaneously |
| `VAL_004` | 422 | Messages sequence must alternate between 'user' and 'assistant' roles, starting with 'user' and end with 'user'. | "Messages sequence must alternate between 'user' and 'assistant' roles, starting with 'user' and end with 'user'.” |
| `VAL_005` | 400 | Cannot provide both `fileset_id` and `fileset_ids` | Cannot provide both `fileset_id` and `fileset_ids` simultaneously |
