def api_response(success, message, http_status_code, data={}):
    """
    API Response common method.

    Args:
        success (bool): API status
        message (str): Message to display
        http_status_code (str or int): HTTP Response type. i.e. 200 or STATUS_OK
        data (dict): Data to be sent in api Response

    Returns: API response with payload and HTTP status code

    """
    payload = {"success": success,
               "message": message,
               "data": data if isinstance(data, dict) else {}}
    return payload, http_status_code