Returning Status code 403
etorres1193 opened this issue · 1 comments
etorres1193 commented
Response
This is the custom error you would like returned when a user is denied access to a resource. This error will be bound to status code of 403
returns 401, why?
lib/index.js file contains
if (!permission) {
return res.status(401).json(deny(options.customMessage, options.response));
}
nyambati commented
@etorresys Thanks for raising this I will have this updated for the next patch release.