Handle 406 Not acceptable when asking for JSON on an AP entity better
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
fc94651577
commit
fc5adedf0b
@ -43,6 +43,10 @@ defmodule Mobilizon.Web.ErrorView do
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def render("406.json", _assigns) do
|
||||||
|
%{msg: "Not acceptable"}
|
||||||
|
end
|
||||||
|
|
||||||
def render("500.html", assigns) do
|
def render("500.html", assigns) do
|
||||||
Mobilizon.Config.instance_config()
|
Mobilizon.Config.instance_config()
|
||||||
|> Keyword.get(:default_language, "en")
|
|> Keyword.get(:default_language, "en")
|
||||||
|
Loading…
Reference in New Issue
Block a user