protected Response createBadRequest ( String message ) { ErrorResponse entity = new ErrorResponse ( ) ; entity . setMessage ( message ) ; return Response . status ( Response . Status . BAD_REQUEST ) . entity ( entity ) . build ( ) ; }
Constructs bad request response