now only checking response code