Dictator v1.1.0 Dictator.UnauthorizedHandlers.JsonApi View Source
JSON API compatible unauthorized handler.
Configure your app to use this handler instead of
Dictator.UnauthorizedHandlers.Default by setting your config/*.exs to:
config :dictator, unauthorized_handler: Dictator.UnauthorizedHandlers.JsonApi
This handler sets the content-type header to application/json and sends
an empty body with the 401 status as the response.