API response status code

For one of our customers, we developed an API that allows them to send us data. When we receive the data, we perform various checks to ensure its validity. Some fields are mandatory for the automation flow to function correctly, while others are optional.

Our question is: Would it be possible to return a 400 status code (or any other code that is not 200) if any required fields are missing?

Currently, we handle this by including a specific output in the response body under certain conditions. However, we’d like to know if we can instead return a 400 status code when required fields are not provided.

Hi @kenneth.seraus,

Currently we do not have support for different status codes other than 200 that you can send yourself. The reason is that we send other error codes on the platform level. For example, a 401 for unauthorized access.

I am not sure we’ll be able to support custom status codes, due to how our platform handles these calls, though we will pick it up with the team to think about whether this could be an option.

1 Like