-
|
Hi, thanks for your framework. But i ran into a problem. How i can send response view with status in fallback controller for handling exception? There's my code: resolve(_Req, {error, internal_error}) ->
{view, [{title, "Internal Error"}], #{view => internal_error, status => 500}}.I've tried to use several variants but it doesn't work. How i can solve that? |
Beta Was this translation helpful? Give feedback.
Answered by
byBenPuls
Nov 25, 2025
Replies: 1 comment 2 replies
-
|
I found solution, to fix error need to rename resolve(_Req, {error, internal_error}) ->
{view, [{title, "Internal Error"}], #{view => internal_error, status_code => 500}}; |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
byBenPuls
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found solution, to fix error need to rename
statustostatus_code: