Wrong API return code (400 instead of 404)

The wrong error code and the wrong message are being displayed.
The notification message inside Retool shows 400 as code and no message.
However, the API returns code 404 and the message "Not Found". Reading the "Status" field and the "StatusText" field should be standard practice for Retool. Therefore, I don't understand why Retool returns error 400 instead of error 404.

Currently installed version (on-premise): 2.95.6

  "response": {
    "data": {
      "message": ""
    },
    "headers": {
      "date": [
        "Fri, 30 Sep 2022 10:28:37 GMT"
      ],
      "content-length": [
        "0"
      ],
      "connection": [
        "keep-alive"
      ],
      "x-content-type-options": [
        "nosniff"
      ],
      "x-xss-protection": [
        "1; mode=block"
      ],
      "cache-control": [
        "no-cache, no-store, max-age=0, must-revalidate"
      ],
      "pragma": [
        "no-cache"
      ],
      "expires": [
        "0"
      ],
      "strict-transport-security": [
        "max-age=15724800; includeSubDomains"
      ],
      "x-frame-options": [
        "SAMEORIGIN"
      ]
    },
    "status": 404,
    "statusText": "Not Found"
  }

Hey @Reboon!

I certainly understand expecting the status and message to reflect the query response there, this looks like something that may need to be fixed on our end. In the meantime, can you try using a custom error handler? Something like: