Output the requests response JSON and status code

    :rtype : dict
    :param response: requests response object
    :return: dict containing the JSON response and/or the status code with error string.

def _return_response_and_status_code(response):
    """ Output the requests response JSON and status code

    :rtype : dict
    :param response: requests response object
    :return: dict containing the JSON response and/or the status code with error string.
    """

    result_codes = {
        "-11": "No matching data to API Key API Key error",
        "-12": "No authority to use No authority to use",
        "-13": "Expired API Key API Key expired",
        "-14": "Over the daily request limit Request limit per daily exceeded",
        "-15": "Over the hourly request limit Request limit per hour exceeded",
        "-1": "Invalid Parameters / Invalid Request",
        "-25": "File Upload Quota Limit Error in file size to upload",
        "-2": "Invalid URL Error in URL type",
        "-31": "Invalid type of hash error in Hash type",
        "-400": "No file attached No file attached",
        "-404": "No result No result",
        "-415": "Ectype of upload form is not multipart/form-data Error in upload form type",
        "-41": "Invalid type of url Error in URL type",
        "-500": "Internal Server Error System error",
        "-51": "Invalid type of ip Error in IP type",
        "-61": "Invalid type of hostname Error in Hostname type",
        "0": "Data is not exist No information found in DB.",
        "1": "Data exists / Analysis request succeeded /Successful upload (new)",
        "2": "Analysis in progress / Successful upload (duplicated)",
        "-999": "Error"

    }

    results = response.json()

    result_code = str(response.json().get('result_code', '-999'))
    result_message = result_codes[result_code]
    return dict(results=results, response_code=result_code, result_message=result_message)