Answer: For a 401 outside local development, send the bearer token, alias token, or channel credential. For a 403 on a stream or follow-up, use the identity that created the session. For a 409 on a follow-up, refresh the rotating continuationToken (task sessions don't accept follow-ups), and for a 409 session_busy from call --session, wait for the turn, omit --session, or mark a read-only tool effect: "read" so it can run alongside the turn. Status: Confirmed Entry: tool/cursor/troubleshooting/fix-http-auth-errors Revision: 1 Digest: sha256:c8d88e0bc076b21b (changes whenever the content changes) Timeline: Created: 2026-11-13T03:09:08Z Last changed: 2026-11-13T03:09:08Z Last verified: 2026-11-20T12:34:26Z Next check: 2026-11-21T12:34:26Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of 401 action | Send the bearer token, alias token, or channel credential. | [1] | 2026-11-20 403 action | Use the identity that created the session. | [1] | 2026-11-20 409 follow-up action | Refresh the rotating `continuationToken`. | [1] | 2026-11-20 409 session_busy action | Wait for the turn, omit `--session`, or mark a read-only tool `effect: "read"` so it can run alongside the turn. | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/troubleshooting.md". https://cursor.com/docs/agent-sdk/troubleshooting.md Role: primary. Accessed: 2026-11-20T12:34:26Z Quote: "Send the bearer token, alias token, or channel credential." (Supports: 401 action) Quote: "Use the identity that created the session." (Supports: 403 action) Quote: "Refresh the rotating `continuationToken`." (Supports: 409 follow-up action) Quote: "Wait for the turn, omit `--session`, or mark a read-only tool `effect: "read"` so it can run alongside the turn." (Supports: 409 session_busy action) Snapshot SHA-256: 5a0a741e37bfaa43e1240618d0614c6e8e197c4e8b6ad35ec734f8b212855d23 (captured 2026-11-13T03:09:08Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:09:08Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:34:26Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:34:26Z Last attempt: 2026-11-20T12:34:26Z Notes and limitations: Extracted automatically from a single official source (section "HTTP returns 401, 403, or 409"). Related: https://latestn.com/tool/cursor/troubleshooting/fix-origin-command-not-found How do I fix 'command not found: origin' after installing the Cursor Origin CLI? https://latestn.com/tool/cursor/troubleshooting/fix-terminal-theme-issues How do I fix terminal theme issues in Cursor CLI? https://latestn.com/tool/cursor/troubleshooting/free-deployment-slot How do I free up a deployment slot when Cursor Agent SDK returns limit_exceeded? https://latestn.com/tool/cursor/troubleshooting/find-debug-log-path How do I find the Cursor CLI debug log path? https://latestn.com/tool/cursor/troubleshooting/fix-blank-playground How do I fix a blank playground or missing agents in Cursor Agent SDK? https://latestn.com/tool/cursor/troubleshooting/fix-github-deliveries How do I troubleshoot GitHub deliveries failing in Cursor Agent SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:09:08Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/troubleshooting/fix-http-auth-errors/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/troubleshooting/fix-http-auth-errors POST: https://latestn.com/dispute/tool/cursor/troubleshooting/fix-http-auth-errors with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/troubleshooting/fix-http-auth-errors?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What should I do when Cursor Agent SDK HTTP requests return 401, 403, or 409? Revision 1, last verified 2026-11-20T12:34:26Z. https://latestn.com/tool/cursor/troubleshooting/fix-http-auth-errors (accessed 2026-11-21T09:52:50Z). @misc{LatestN_tool_cursor_troubleshooting_fix_http_auth_errors_r1, title = {What should I do when Cursor Agent SDK HTTP requests return 401, 403, or 409?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/troubleshooting/fix-http-auth-errors}}, note = {Revision 1; digest sha256:c8d88e0bc076b21b; last verified 2026-11-20T12:34:26Z; accessed 2026-11-21T09:52:50Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/troubleshooting/fix-http-auth-errors