def lambda_failure_response ( * args ) : response_data = jsonify ( ServiceErrorResponses . _LAMBDA_FAILURE ) return make_response ( response_data , ServiceErrorResponses . HTTP_STATUS_CODE_502 )
python flask how to return 404
Helper function to create a Lambda Failure Response
def lambda_failure_response(*args):
        """
        Helper function to create a Lambda Failure Response

        :return: A Flask Response
        """
        response_data = jsonify(ServiceErrorResponses._LAMBDA_FAILURE)
        return make_response(response_data, ServiceErrorResponses.HTTP_STATUS_CODE_502)