Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Typo in header Exchange.HTTP_CONTENT_TYPE

...

Code Block
onException(JsonParseException.class)
    .handled(true)
    .setHeader(Exchange.HTTP_RESPONSE_CODE, constant(400))
    .setHeader(Exchange.HTTP_CONTENT_TYPE, constant("text/plain"))
    .setBody().constant("Invalid json data");

...