Skip to content

Conversation

@braden-w
Copy link
Contributor

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

This change highlights one of Elysia's developer experience advantages for developers migrating from Express, Fastify, and Hono. While those frameworks require numeric HTTP status codes like res.status(404), Elysia supports both numeric codes and human-readable string names like set.status = 'Not Found'. This makes code more readable and reduces the need to memorize status code numbers, which is a genuine improvement worth surfacing to potential migrants.

To accomplish this, I added tip boxes to the Express, Fastify, and Hono migration guides that explicitly call out this dual support. The tRPC migration guide frames this feature differently since tRPC already uses string-based error codes, making the transition to Elysia's string status names feel more natural. This builds on PRs #739-#744, which also improved visibility of string status name support throughout the documentation.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 6, 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 28 minutes and 42 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 21c3305.

📒 Files selected for processing (4)
  • docs/migrate/from-express.md (1 hunks)
  • docs/migrate/from-fastify.md (1 hunks)
  • docs/migrate/from-hono.md (1 hunks)
  • docs/migrate/from-trpc.md (1 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.

Adds tip boxes to all migration guides highlighting that Elysia supports
both numeric and string status names, unlike Express/Fastify/Hono which
only accept numeric codes.

This is a genuine DX advantage worth showcasing to users migrating from
other frameworks.
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