Fixed response access when error occurs