How to prevent a process from failing when an HTTP request receives an error response

Table of contents

  • Introduction
  • Guide

Introduction

By default, Alumio will stop a process if it sends a request HTTP request to a web service and it returns an error. The error means the web service returns a response with status code 4xx or 5xx.

However, there may be requirements when the integration should continue, even if some HTTP requests fail. For this reason, we have an option available in HTTP clients to not abort the process when receiving such errors. The option is called “Abort process on errors”. By using this option, you will be able to utilize the payload of failed HTTP responses within your integrations.

Guide

Step 1: Go to the HTTP client.

Step 2: Go to the tab Error Handling & Connection

Step 3: You will find an option called “Abort process on errors”.

  • Uncheck the option if you want Alumio to keep processing when it receives any HTTP errors returned from the web service.

  • You can also keep the option checked and still allow Alumio to keep processing if it receives particular HTTP status codes by adjusting the HTTP code ranges that suit your requirements. For example, if you want to keep processing if Alumio receives HTTP status 400 while aborting the others, configure it such as below.