Skip to content
Discussion options

You must be logged in to vote

Koa uses 404 as the default response statusCode, which is different from the default 200 of connect and http.

https://nodejs.org/api/http.html#responsestatuscode

https://github.com/koajs/koa/blob/master/docs/api/response.md#responsestatus

When using koa and Rsbuild, you can manually set the default status code to 200. Refer to this issue: webpack/webpack-dev-middleware#174 (comment)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sytana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4798 on March 15, 2025 07:47.