def rcode_to_workflow_status(response_code):
    """Map the cwl tool exit code to a workflow status."""
    rcode_to_workflow_status_mapping = {0: 2, 1: 3}
    return rcode_to_workflow_status_mapping[response_code]