docs: function _treatBadRequestExceptions(responseJSON = {}, options) {
      responseJSON.type = responseJSON.type || errorTypes.entity;
      if (responseJSON.type !== undefined) {
          switch (responseJSON.type) {
              case errorTypes.entity:
                  return _treatEntityExceptions(responseJSON, options);
              case errorTypes.collection:
                  return _treatCollectionExceptions(responseJSON, options);
              default:
                  break;
          }
      }
      return null;
  }