assign response status to the status variable