This line should look like:

raise ServerError(url, http_status, 'Error returned from