Change auth error to error code 401