Handle not authorized with NotAuthorizedException