Set custom errors.