Skip to content

Commit dd422d2

Browse files
jahoomaclaude
andcommitted
Update banned user test assertions to match new message
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5c8a0a3 commit dd422d2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/error-schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Used for errors that the client needs to identify programmatically:
3434

3535
| Status | `error` code | Example `message` |
3636
|--------|-------------|-------------------|
37-
| 403 | `account_suspended` | `"Your account has been suspended due to billing issues. Please contact support@codebuff.com to resolve this."` |
37+
| 403 | `account_suspended` | `"Your account has been suspended. Please contact support@codebuff.com if you did not expect this."` |
3838
| 403 | `free_mode_unavailable` | `"Free mode is not available in your country."` (Freebuff: `"Freebuff is not available in your country."`) |
3939
| 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."` |
4040

web/src/app/api/v1/chat/completions/__tests__/completions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ describe('/api/v1/chat/completions POST endpoint', () => {
412412
expect(response.status).toBe(403)
413413
const body = await response.json()
414414
expect(body.error).toBe('account_suspended')
415-
expect(body.message).toContain('Your account has been suspended due to billing issues')
416-
expect(body.message).toContain('to resolve this')
415+
expect(body.message).toContain('Your account has been suspended')
416+
expect(body.message).toContain('if you did not expect this')
417417
})
418418
})
419419

0 commit comments

Comments
 (0)