Setting the Error Value Returned when Denying Access within Action via api.access.deny

Problem statement

This article explains whether it is possible to set the error value returned when denying access within an action via api.access.deny.

Solution

It is not possible to do this. The error_description value returned will be the message passed to api.access.deny, but the error parameter will always have the value of access_denied .

To suggest this functionality in a future release of Auth0, please submit a feature request using our Product Feedback form.