docs: def checkResponse(request):
          '''
          Returns if a request has an okay error code, otherwise raises InvalidRequest.
          '''
  
          # Check the status code of the returned request
          if str(request.status_code)[0] not in ['2', '3']:
              w = str(request.text).split('\\r')[0][2:]
              raise InvalidRequest(w)
          return