def _get(self, url):
req = requests.get(RequestHandler.BASE_URL + url, headers=self.headers)<EOL>status_code = req.status_code<EOL>if status_code == requests.codes.ok:<EOL><INDENT>return req<EOL><DEDENT>elif status_code == requests.codes.bad:<EOL><INDENT>raise APIErrorException('<STR_LIT>')<EOL><DEDENT>elif status_code == requests.codes.forbidden:<EOL><INDENT>raise APIErrorException('<STR_LIT>')<EOL><DEDENT>elif status_code == requests.codes.not_found:<EOL><INDENT>raise APIErrorException('<STR_LIT>')<EOL><DEDENT>elif status_code == requests.codes.too_many_requests:<EOL><INDENT>raise APIErrorException('<STR_LIT>')<EOL><DEDENT>
Handles api.football-data.org requests