Handling 401 statusCode Exception