Error view that can be used in Phoenix:
config :myapp, MyApp.Endpoint, render_errors: [view: EView.Views.PhoenixError, accepts: ~w(json)]