added option to specify success flag location

response.success seems overly strict. Added option to support success flag location. Defaults to response.success.