-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.5
-
Component/s: Plugin - REST
Setting the status code for validation has no effect.
<constant name="struts.rest.validationFailureStatusCode" value="406"/>
Inside of the RestWorkflowInterceptor this status code is used:
HttpHeaders info = new DefaultHttpHeaders()
.disableCaching()
.renderResult(method)
.withStatus(validationFailureStatusCode);
But the result has still a 200 success result.