I found a hidden gem last week: Plug’s exception protocol. It gives you a concise pattern for rendering errors to users in an informative way.
For example, consider some team dashboard that you want to limit access to in your Phoenix application....