Implemented class RestErrorMessage to provide a meaningful message for
validation errors.