ensure type option only applies to successful responses