Simplify Your Phoenix Controllers with action_fallback
In this episode we’ll look at one way to simplify an existing Phoenix controller using Phoenix.Controller.action_fallback/1
https://elixircasts.io/simplifying-phoenix-controllers-with-action_fallback
Read next How to mock HTTPoison in Elixir?