You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the docs for Kemal, one of the example error handlers is
error 403do"Access Forbidden!"end
The only way for this error handler to work is for somewhere in the code to set the status code on the response and then raise a Kemal::Exceptions::CustomException (or ancestor of it).
I believe this kind of error would be better handled like
error AccessForbiddenErrordo"Access Forbidden"end
We could go into these error handlers with the default status of 500 unless the error is a custom Kemal error where the status could be specified on it.
What do you think?
The text was updated successfully, but these errors were encountered:
Description
In the docs for Kemal, one of the example error handlers is
The only way for this error handler to work is for somewhere in the code to set the status code on the response and then raise a
Kemal::Exceptions::CustomException
(or ancestor of it).I believe this kind of error would be better handled like
We could go into these error handlers with the default status of 500 unless the error is a custom Kemal error where the status could be specified on it.
What do you think?
The text was updated successfully, but these errors were encountered: