This commit is contained in:
Rodolphe Marbot 2022-05-17 21:26:44 +02:00
commit bea29624ab
92 changed files with 2264 additions and 0 deletions

View file

@ -0,0 +1,16 @@
defmodule ReaprocheWeb.ErrorView do
use ReaprocheWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. For example, "404.html" becomes
# "Not Found".
def template_not_found(template, _assigns) do
Phoenix.Controller.status_message_from_template(template)
end
end