docs: function (error, request, response) {
              response.reqId = request.id;
              response.url = request.url;
  
              var expectedResponseType = request.expectedResponseType;
  
              if (error) {
                  this.nbKOResponses++;
  
                  if (!response.responseText) {
                      response.responseText = "";
                  }
  
                  if (response.responseText && expectedResponseType === "json") {
                      try {
                          response.responseJSON = this.__serializer.parse(response.responseText);
                      } catch (ex) {
                          this.$logWarn(this.JSON_PARSING_ERROR, [request.url, response.responseText]);
                      }
                  }
  
                  if (!response.error) {
                      response.error = error === true ? error.statusText || "error" : error.errDescription;
                  }
  
              } else {
                  this.nbOKResponses++;
  
                  if (expectedResponseType) {
                      this._jsonTextConverter(response, expectedResponseType);
                  }
  
                  response.error = null;
              }
          }