def check_error(self, response):
if response.status_code == <NUM_LIT>:<EOL><INDENT>raise ServiceError("<STR_LIT>" + response.content)<EOL><DEDENT>if response.status_code == <NUM_LIT>:<EOL><INDENT>if "<STR_LIT>" in response.content:<EOL><INDENT>raise ServiceError("<STR_LIT>")<EOL><DEDENT>raise ServiceError("<STR_LIT>")<EOL><DEDENT>if response.status_code == <NUM_LIT>:<EOL><INDENT>raise ServiceError("<STR_LIT>")<EOL><DEDENT>if response.status_code == <NUM_LIT>:<EOL><INDENT>raise ServiceError("<STR_LIT>")<EOL><DEDENT>if response.status_code == <NUM_LIT>:<EOL><INDENT>raise ServiceError("<STR_LIT>")<EOL><DEDENT>
If the service is returning an error, this function should raise an exception.
such as SkipThisService