def check_errors(self, uri, response):
if response.status == <NUM_LIT>:<EOL><INDENT>raise trolly.Unauthorised(uri, response)<EOL><DEDENT>if response.status != <NUM_LIT:200>:<EOL><INDENT>raise trolly.ResourceUnavailable(uri, response)<EOL><DEDENT>
Check HTTP reponse for known errors