Throwing an error in the browser in load
results in a 500 internal error
#12168
Labels
documentation
Improvements or additions to documentation
Describe the bug
According to https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses the 500 response is used to indicate that an error has occurred on the server. This is kind of confusing when the error is thrown in the browser.
Reproduction
Link to repro: https://github.com/MathiasWP/500-internal-error-sveltekit-browser
The +page.js load method that will throw a
500 Internal Error
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: