CursorState#getHeaders should throw AuthFailureError