1 defmodule Pleroma.Web.ErrorView do
4 def render("404.json", _assigns) do
5 %{errors: %{detail: "Page not found"}}
8 def render("500.json", _assigns) do
9 %{errors: %{detail: "Internal server error"}}
12 # In case no render clause matches or no
13 # template is found, let's render it as 500
14 def template_not_found(_template, assigns) do
15 render("500.json", assigns)