The simplest Elixir process example How to mock HTTPoison in Elixir?

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