Error Handling Spring Boot Starter release 1.2.0

Posted at — Feb 18, 2021

I just did release 1.2.0 of the error-handling-spring-boot-starter library. It allows now to customize how the error response is serialized to JSON.

By default, the library uses this:

  "code": "TEST_CODE",
  "message": "Test message"

If you like to use other field names, you can do this now via For example, adding this:

will result in this JSON instead:

  "errorCode": "TEST_CODE",
  "description": "Test message"

The library is available on Maven central so you can easily include it in your build. Read more details at or check out the documentation at the GitHub page.

If you want to be notified in the future about new articles, as well as other interesting things I'm working on, join my mailing list!
I send emails quite infrequently, and will never share your email address with anyone else.