I am writing a super simple authorization plug. This plug checks to see if the current user’s role is in the list of approved roles for this scope. if the test passes, I’d like to move on. This part works.
In the case of a failure, I would like to halt and throw a 404.
Can I do this?