We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, if I have a literal http status code I have to write my own translation layer:
case status_code do 200 -> Solicit.Response.ok(conn) 404 -> Solicit.Response.not_found(conn) #... end
This is very error prone. I would like the ability to pass the status code to Solicit and have it do the translation:
Solicit
Solicit.Response.from_status(status_code, %{example: "body"})
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, if I have a literal http status code I have to write my own translation layer:
This is very error prone. I would like the ability to pass the status code to
Solicit
and have it do the translation:The text was updated successfully, but these errors were encountered: