Allow set custom authentication errors.