added error and delay config to request header