defmodule LivebookWeb.ErrorHTML do use LivebookWeb, :html def render("404.html", assigns) do ~H""" <.error_page status={@status} title="No Numbats here!" /> """ end def render("403.html", assigns) do ~H""" <.error_page status={@status} title="No Numbats allowed here!" /> """ end def render(_template, assigns) do ~H""" <.error_page status={@status} title="Something went wrong." details="Check out the console for logs for more information." /> """ end attr :status, :integer, required: true attr :title, :string, required: true attr :details, :string, default: nil defp error_page(assigns) do ~H""" <%= @status %> - Livebook
livebook
<%= @title %>
<%= @details %>
""" end end