1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.ErrorView do
8 def render("404.json", _assigns) do
9 %{errors: %{detail: "Page not found"}}
12 def render("500.json", _assigns) do
13 %{errors: %{detail: "Internal server error"}}
16 # In case no render clause matches or no
17 # template is found, let's render it as 500
18 def template_not_found(_template, assigns) do
19 render("500.json", assigns)