Check expected response status code.