mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 16:03:25 +00:00
Handle NotAcceptableError better
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
cbf772f282
commit
bbfe3de471
1 changed files with 4 additions and 0 deletions
4
lib/web/plugs/not_acceptable_error.ex
Normal file
4
lib/web/plugs/not_acceptable_error.ex
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
defimpl Plug.Exception, for: Phoenix.NotAcceptableError do
|
||||||
|
def status(_exception), do: 406
|
||||||
|
def actions(_exception), do: []
|
||||||
|
end
|
Loading…
Reference in a new issue