Skip to content

Conversation

@braden-w
Copy link
Contributor

@braden-w braden-w commented Dec 5, 2025

This PR updates the macro and validation tutorial examples to use string status names instead of numeric codes. The change makes the examples more readable and self-documenting: seeing t.status('Bad Request') is clearer than t.status(400), especially for developers who haven't memorized HTTP status codes.

I recognize this is a stylistic preference, and you may prefer numeric codes for consistency or other reasons. If so, feel free to reject this PR; I completely understand.

This change is part of a broader effort across PRs #739-#741 and #743-#745 to improve the visibility and usage of string status names throughout the documentation. The goal is to make it easier for developers to discover and use this feature, since many may not realize Elysia supports both numeric and string status codes.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 5, 2025

Warning

Rate limit exceeded

@braden-w has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 0 minutes and 24 seconds before requesting another review.

⌛ 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.

📥 Commits

Reviewing files that changed from the base of the PR and between 5e5da8b and de56db2.

📒 Files selected for processing (2)
  • docs/tutorial/getting-started/validation/index.md (1 hunks)
  • docs/tutorial/patterns/macro/index.md (2 hunks)
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

- Convert status(418) to status("I'm a teapot") in validation tutorial
- Convert status(418) to status("I'm a teapot") in macro tutorial
- Convert status(401) to status("Unauthorized") in macro auth example
@braden-w
Copy link
Contributor Author

braden-w commented Dec 6, 2025

Superseded by #747 (conversions)

@braden-w braden-w closed this Dec 6, 2025
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