Merge "Add request error state to ApiBase::logRequest"