The statusText property of the response object in the endpoint should be preserved. #9401
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: error pages
Related to 404 and 500 handling (scope)
requires refactor
Bug, may take longer as fixing either requires refactors, breaking changes, or considering tradeoffs
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
The
statusText
value of the new Response returned from the endpoint is not preserved. Here is an example code:Afterwards, when checking the endpoint value with fetch in the browser, the
statusText
property of the response is changed toInternal Server Error
.I'm not sure if this is the intended behavior.
What's the expected result?
The specified statusText value provided by the user should be displayed.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-1dagae?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: