response with json on auth error