La tarea Return te permite personalizar los mensajes de error correspondientes a los códigos de respuesta HTTP que se muestran durante una falla de ejecución de integración.
Puedes modificar o personalizar los mensajes de error de los siguientes códigos de respuesta HTTP:
Código HTTP
Código canónico
400
INVALID_ARGUMENT
400
OUT_OF_RANGE
401
UNAUTHENTICATED
403
PERMISSION_DENIED
404
NOT_FOUND
409
ALREADY_EXISTS
429
RESOURCE_EXHAUSTED
499
CANCELLED
Configura la tarea Mostrar
Para configurar la tarea Mostrar, haz lo siguiente:
En la consola de Google Cloud , ve a la página Application Integration.
En el menú de navegación, haz clic en Integraciones.
Aparecerá la página Integraciones, en la que se enumeran todas las integraciones disponibles en el proyecto de Google Cloud.
Selecciona una integración existente o haz clic en Crear integración para crear una nueva.
Si creas una integración nueva, haz lo siguiente:
Ingresa un nombre y una descripción en el panel Crear integración.
Selecciona una región para la integración.
Selecciona una cuenta de servicio para la integración. Puedes cambiar o actualizar los detalles de la cuenta de servicio de una integración en cualquier momento desde el panel infoResumen de la integración en la barra de herramientas de la integración.
Haz clic en Crear. La integración recién creada se abrirá en el editor de integración.
En la barra de navegación del editor de integración, haz clic en Tareas para ver la lista de tareas y conectores disponibles.
Haz clic y coloca el elemento de tarea Mostrar en el editor de integración.
Haz clic en el elemento de tarea Mostrar en el diseñador para abrir el panel de configuración de la tarea Mostrar.
Configura los campos mostrados mediante las propiedades de configuración para la tarea, como se detalla en las tablas que aparecen a continuación.
Los cambios en las propiedades se guardan de forma automática.
Propiedades de configuración
En la siguiente tabla, se describen las propiedades de la tarea Mostrar.
Propiedad
Tipo de datos
Descripción
HTTP code
Número entero
El código HTTP 4XX para el que deseas personalizar el mensaje de error.
Customized return message
Cadena
Es el mensaje de error personalizado para el código HTTP especificado.
Estrategia de manejo de errores
Una estrategia de manejo de errores de una tarea específica la acción que se debe realizar si la tarea falla debido a un error temporal. Para obtener información sobre cómo usar una estrategia de manejo de errores y conocer los diferentes tipos de estrategias de manejo de errores, consulta Estrategias de manejo de errores.
Cuotas y límites
Para obtener más información sobre las cuotas y los límites, consulta Cuotas y límites.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-03 (UTC)"],[[["\u003cp\u003eThe \u003cstrong\u003eReturn\u003c/strong\u003e task allows users to customize error messages for specific HTTP response codes that occur during integration execution failures.\u003c/p\u003e\n"],["\u003cp\u003eUsers can modify error messages for a range of HTTP codes, including 400, 401, 403, 404, 409, 429, and 499, each associated with a specific canonical error code.\u003c/p\u003e\n"],["\u003cp\u003eConfiguring the \u003cstrong\u003eReturn\u003c/strong\u003e task involves navigating to the Application Integration page, selecting an integration, placing the \u003cstrong\u003eReturn\u003c/strong\u003e task in the editor, and setting the desired HTTP code and custom error message.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003cstrong\u003eReturn\u003c/strong\u003e task configuration properties include specifying the HTTP code and the customized return message to be displayed upon error.\u003c/p\u003e\n"],["\u003cp\u003eUsers can find information on error handling strategies and quotas and limits for the return task in the documentation.\u003c/p\u003e\n"]]],[],null,["# Return task\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nReturn task\n===========\n\nThe **Return** task lets you customize the error messages corresponding to the HTTP response codes that are returned during an integration execution failure.\nYou can modify or customize error messages for the following HTTP response codes:\n\nConfigure the Return task\n-------------------------\n\nTo configure the **Return** task:\n\n1. In the Google Cloud console, go to the **Application Integration** page.\n\n [Go to Application Integration](https://console.cloud.google.com/integrations)\n2. In the navigation menu, click **Integrations** .\n\n\n The **Integrations** page appears listing all the integrations available in the Google Cloud project.\n3. Select an existing integration or click **Create integration** to create a new one.\n\n\n If you are creating a new integration:\n 1. Enter a name and description in the **Create Integration** pane.\n 2. Select a region for the integration. **Note:** The **Regions** dropdown only lists the regions provisioned in your Google Cloud project. To provision a new region, click **Enable Region** . See [Enable new region](/application-integration/docs/enable-new-region) for more information.\n 3. Select a service account for the integration. You can change or update the service account details of an integration any time from the info **Integration summary** pane in the integration toolbar. **Note:** The option to select a service account is displayed only if you have enabled integration governance for the selected region.\n 4. Click **Create** . The newly created integration opens in the *integration editor*.\n\n\n4. In the *integration editor* navigation bar, click **Tasks** to view the list of available tasks and connectors.\n5. Click and place the **Return** task element in the integration editor.\n6. Click the **Return** task element on the designer to open the **Return** task configuration pane.\n7. Configure the displayed fields using the [Configuration properties](#params) for the task as detailed in the tables below.\n\n\n All changes to the properties are saved automatically.\n\nConfiguration properties\n------------------------\n\n\nThe following table describes the configuration properties of the **Return** task.\n\nError handling strategy\n-----------------------\n\n\nAn error handling strategy for a task specifies the action to take if the task fails due to a [temporary error](/application-integration/docs/error-handling). For information about how to use an error handling strategy, and to know about the different types of error handling strategies, see [Error handling strategies](/application-integration/docs/error-handling-strategy).\n\nQuotas and limits\n-----------------\n\nFor information about quotas and limits, see [Quotas and limits](/application-integration/docs/quotas).\n\nWhat's next\n-----------\n\n- Learn about [all tasks and triggers](/application-integration/docs/all-triggers-tasks).\n- Learn how to [test and publish an integration](/application-integration/docs/test-publish-integrations).\n\n- Learn about [error handling](/application-integration/docs/error-handling-strategy).\n- Learn about [integration execution logs](/application-integration/docs/introduction-logs)."]]