Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/error-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Used for errors that the client needs to identify programmatically:

| Status | `error` code | Example `message` |
|--------|-------------|-------------------|
| 403 | `account_suspended` | `"Your account has been suspended due to billing issues. Please contact support@codebuff.com to resolve this."` |
| 403 | `account_suspended` | `"Your account has been suspended. Please contact support@codebuff.com if you did not expect this."` |
| 403 | `free_mode_unavailable` | `"Free mode is not available in your country."` (Freebuff: `"Freebuff is not available in your country."`) |
| 429 | `rate_limit_exceeded` | `"Subscription weekly limit reached. Your limit resets in 2 hours. Enable 'Continue with credits' in the CLI to use a-la-carte credits."` |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ describe('/api/v1/chat/completions POST endpoint', () => {
expect(response.status).toBe(403)
const body = await response.json()
expect(body.error).toBe('account_suspended')
expect(body.message).toContain('Your account has been suspended due to billing issues')
expect(body.message).toContain('to resolve this')
expect(body.message).toContain('Your account has been suspended')
expect(body.message).toContain('if you did not expect this')
})
})

Expand Down
Loading