Issue on HTTP response node- Always returning 200

Issue Overview

In an HTTP endpoint, the HTTP Response node does not return the configured status code when the response body type is set to JSON. Instead, it always returns HTTP 200 OK. When the response body type is configured using an Expression, the configured status code is returned as expected.

Replication Steps

  1. Click the Test 1 button below.
  2. Observe that the HTTP response status code is 200 OK, even though the HTTP Response node is configured to return 403 Forbidden.
  3. This issue only occurs when the response body type is configured as JSON. Using an Expression as the response body type works as expected.

For comparison, I also created a second endpoint where the HTTP Response node is configured to return 403 Forbidden and the response body type is configured using Expression. When this endpoint is called, it correctly returns the configured 403 status code.

To verify this behavior, please click the Test 2 button below.

Http request result

Code

Node ID: 21095983