ContextManager now determines error same way as original http client