Move below check of response code.