Introduce a setNotAuthorizedResponse() method.