Open
Description
When using this plugin the handler will always return HTTP 200 code even if status code is explicitly set
reproduction
export const app = new Elysia()
.use(html())
.get('/should-return-error', ({set}) => {
set.status = 422;
return <div></div>;
})
it returns http code 200 instead of 422.
Most of the time it's fine. But sometimes (for example using htmx) you want to be able to return html with your error
Metadata
Metadata
Assignees
Labels
No labels