Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Response - Custom error is not working #124

Open
jcrodrigues87 opened this issue Oct 24, 2018 · 1 comment
Open

Response - Custom error is not working #124

jcrodrigues87 opened this issue Oct 24, 2018 · 1 comment

Comments

@jcrodrigues87
Copy link

Configuring a custom error message is not working.

@waghcwb
Copy link

waghcwb commented Feb 4, 2020

@jcrodrigues87

Can you please provide more info about? For me it's working, I'm using denyCallback option

acl.config({
  ...yourConfig,
  denyCallback: (res) => res.status(403).json('my message')
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants