Most of us know that the Status Code (response code) is used to determine whether a HTTP request is successfully processed by the target end point. It is obvious that we can determine the status code in any Java client by using this:
URL url = new URL("https://example.com"); HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setRequestMethod("GET"); connection.connect(); int code = connection.getResponseCode();
However, how do we do this in Boomi? By using custom scripting? The answer is to use the Application Status Code document property that can be found under Document Property -> Meta Information -> Base section.
Every time an HTTP request is sent out from Boomi, the response status will be recorded in this document property. You can then use a decision shape to validate against the result of this document property and act accordingly in your integration process (e.g, send an email if the status code is 400 – failed).