Elixir + Phoenix: How to Raise Custom HTTP Error Responses in Your REST API
This blog post shows how, by adding a few lines of code, you can return a custom HTTP error response (with status code and custom message/payload) in your Elixir + Phoenix REST API, at any time in the request-response lifecycle.
https://www.nicholasmoen.com/blog/phoenix-custom-error-responses/
Read next Phoenix admin frameworks - a very subjective evaluation