WL-2833 Throw Bad Request exception as json