error_view.ex 491 B

12345678910111213141516
  1. defmodule OpenpodWeb.ErrorView do
  2. use OpenpodWeb, :view
  3. # If you want to customize a particular status code
  4. # for a certain format, you may uncomment below.
  5. # def render("500.html", _assigns) do
  6. # "Internal Server Error"
  7. # end
  8. # By default, Phoenix returns the status message from
  9. # the template name. For example, "404.html" becomes
  10. # "Not Found".
  11. def template_not_found(template, _assigns) do
  12. Phoenix.Controller.status_message_from_template(template)
  13. end
  14. end