def getResponce(req):
    """Returns a http responce from a http request. The responce is expected to be in json format."""
    try:
        resp = {
            "status_code": req.status_code,
            "encoding": req.encoding,
            "headers": req.headers,
            "url": req.url,
            "content": req.json()
        }
    except:
        return None
    else:
        return resp