How do I pass in a custom 401 Not Authorized message when :not-authorized? is true? I'd like to show a more useful message like Key must have admin permissions.
For every http status code there is a handler function defined in liberator. All have sensible defaults and will return a simple english error message or an empty response, whatever is appropriate.
In your case you need to provide your own handler for :handle-unauthorized key:
You need to take a look at handlers:
In your case you need to provide your own handler for
:handle-unauthorized
key: