File size: 599 Bytes
3f219b5
 
d77a9fd
 
 
 
 
3a5ca01
 
d77a9fd
4548f2b
d77a9fd
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
defmodule MedicodeWeb.ErrorHTML do
  use MedicodeWeb, :html

  # If you want to customize your error pages,
  # uncomment the embed_templates/1 call below
  # and add pages to the error directory:
  #
  #   * lib/medicode_web/controllers/error_html/404.html.heex
  #   * lib/medicode_web/controllers/error_html/500.html.heex
  #
  embed_templates "error_html/*"

  # The default is to render a plain text page based on
  # the template name. For example, "404.html" becomes
  # "Not Found".
  def render(template, _assigns) do
    Phoenix.Controller.status_message_from_template(template)
  end
end