error handling on Unauthorized Message