Having restError and validationError