Handle NotAcceptableError better
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user