Skip to content

Make the error message and the HTTPS response code identical version 5.0.12 #725

Description

@Hooghof

In 4.17.13, it is standard practice for an HTTPS response code of 500 and the error message in JSON to be returned to the requester in of an error. In 4.20.0 the HTTPS response code is 200 and the error message is in plain text.

4.17.13

{
"code": 500,
"error": "org.apache.camel.CamelExchangeException: Error occurred during aggregation. Exchange[E440A3CA6859217-0000000000009F7B]. Caused by: [org.assimbly.util.exception.EnrichException - Can't override body]",
"info": "Something went wrong calling the HTTP service. Please refer to the logs for more information."
}

4.20.0

Error occurred during aggregation. Exchange[E30D5CE8EBAAA0D-000000000000D503]. Caused by: [org.assimbly.util.exception.EnrichException - Can't override body]

Test cases

Instances: development and next
Tenant: Regression Tests
Flow: ErrorMessagePlus500

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions