Returns exceptions with the correct message for 401 Unauthorized.