Skip to content

docs: add HTTPException usage examples to exceptions reference#1375

Open
sansyrox wants to merge 1 commit intomainfrom
docs/custom-exception-handling
Open

docs: add HTTPException usage examples to exceptions reference#1375
sansyrox wants to merge 1 commit intomainfrom
docs/custom-exception-handling

Conversation

@sansyrox
Copy link
Copy Markdown
Member

Summary

  • Adds a new "Handling Errors" section to the exceptions API reference page showing how to use HTTPException with status_codes for error handling in route handlers
  • Includes both typed and untyped code examples using Robyn's path parameter syntax
  • Placed before the existing "Custom Exception Handler" section for logical flow

Supersedes #951

Test plan

  • Verify the docs site renders the new section correctly
  • Confirm code examples use valid Robyn API (HTTPException, status_codes, :param syntax)

Made with Cursor

Adds documentation showing how to use HTTPException for error handling
with both typed and untyped code examples.

Supersedes #951

Made-with: Cursor
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
robyn Ready Ready Preview, Comment Apr 11, 2026 11:45pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 11, 2026

Warning

Rate limit exceeded

@sansyrox has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 13 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 0 minutes and 13 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 863f435b-8a30-448c-abed-05e6f38b1994

📥 Commits

Reviewing files that changed from the base of the PR and between 3e04c65 and e674ffe.

📒 Files selected for processing (1)
  • docs_src/src/pages/documentation/en/api_reference/exceptions.mdx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/custom-exception-handling

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 12, 2026

Merging this PR will not alter performance

✅ 189 untouched benchmarks


Comparing docs/custom-exception-handling (e674ffe) with main (3e04c65)

Open in CodSpeed

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.

1 participant