JBoss EAP RESTEASY-2522 - Inconsistent response code when calling JAXRS-based endpoint with BeanValidation Constraints

Solution Verified - Updated -

Issue

The REST endpoint with BeanValidation is returning HTTP status 500 to a invalid data instead 400.
The problem is the request that return HTTP status 500 generates a ConstraintViolationException instead a ResteasyViolationException.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content