pawangspandey / accesscontrol-middleware

14 stars 6 forks source link

Error when forbidden #2

Closed suresh-shetiar closed 6 years ago

suresh-shetiar commented 6 years ago

I think there should be a provision to send an error message when the user dont have access to do something.

For now it just sets the status 403 which is for forbidden, but it does not sends any message, just sends blank response.

I think there should be some message sended to user when they dont have access for something to do, saying you dont have access to do this work.

scandinave commented 6 years ago

For me, this is the frontend role to handle the 403 error and display a correct message.