Handle NotAcceptableError better
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
cbf772f282
commit
bbfe3de471
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