Skip to content

Update streaming error code numbers in session errors table#660

Merged
LeeVaughn merged 3 commits intomainfrom
devin/1771873679-update-streaming-error-codes
Feb 26, 2026
Merged

Update streaming error code numbers in session errors table#660
LeeVaughn merged 3 commits intomainfrom
devin/1771873679-update-streaming-error-codes

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 23, 2026

Summary

Updates the error codes table on the Common session errors and closures page. Previously, most error rows used the generic 3005 code. This PR reassigns them to new, more specific codes while preserving every original row, reason string, and description exactly as-is.

Code number changes (reason strings and descriptions unchanged):

  • 30053008: "Session Expired: Maximum session duration exceeded"
  • 30053007: "Input duration violation: <time> ms. Expected between 50 and 1000 ms"
  • 30053006: "Invalid Message Type: <message>"
  • 30053006: "Invalid JSON: <json>"
  • 30053006: "Invalid Message: <message>"
  • 30053007: "Audio Transmission Rate Exceeded: Received <time> sec. audio in <time> sec"
  • 10083009: "Unauthorized Connection: Too many concurrent sessions"

Rows kept unchanged (no code change):

  • 3005 — "Session Cancelled: An error occurred"
  • 1008 — "Unauthorized Connection: Missing Authorization header"
  • 1008 — "Unauthorized Connection: <reason>"

Other changes:

  • Added a <Note> explaining that 3005 is still used as a catch-all for server-side errors
  • Updated the "Handling closed sessions" example to reference 3008 instead of 3005

Updates since last revision

Per engineer feedback, reverted the earlier approach that consolidated rows into new reason strings. Now all original rows are preserved verbatim — only the code numbers are changed.

Review & Testing Checklist for Human

  • Verify each code number matches what the backend actually returns — these mappings came from a Slack request, not from backend source code. Confirm 3006/3007/3008/3009 are the correct codes for each error scenario
  • Preview the rendered page on the deploy preview to confirm the table and <Note> render correctly
  • Check the 3005 catch-all note wording — it says "not covered by the more specific codes above" — verify this reads clearly given 3005 appears mid-table

Notes

- Add new codes 3006 (User Input Validation Error), 3007 (Input Duration Error), 3008 (Session Expired Error), 3009 (Concurrency Exceeded Error)
- Remove rows from 3005 that are now covered by new specific codes
- Remove 1008 concurrent sessions row (now covered by 3009)
- Keep 3005 as catch-all for generic server errors
- Add note about 3005 catch-all behavior
- Update Handling closed sessions example to reference new 3008 code

Co-Authored-By: unknown <>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link

@github-actions
Copy link

Per engineer feedback: keep all original reason strings and descriptions
exactly as they were. Only update the code numbers:
- 3005 -> 3008 for Session Expired row
- 3005 -> 3007 for Input duration violation row
- 3005 -> 3006 for Invalid Message Type, Invalid JSON, Invalid Message rows
- 3005 -> 3007 for Audio Transmission Rate Exceeded row
- 1008 -> 3009 for Too many concurrent sessions row
- Keep 3005 Session Cancelled, 1008 Missing Authorization, 1008 <reason> unchanged

Co-Authored-By: unknown <>
@devin-ai-integration devin-ai-integration bot changed the title Update streaming error codes table with new specific error codes Update streaming error code numbers in session errors table Feb 24, 2026
@github-actions
Copy link

@zakki-aai
Copy link
Contributor

@dylan-duan-aai review plz convo here

@LeeVaughn LeeVaughn merged commit a801c6e into main Feb 26, 2026
3 of 4 checks passed
@LeeVaughn LeeVaughn deleted the devin/1771873679-update-streaming-error-codes branch February 26, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants