code: function checkErrors(error, response) {
          if (error) {
              return error instanceof Error ? error : new Error(error);
          }
  
          // Bamboo API enable plan returns 204 with empty response in case of success
          if ((response.statusCode !== 200) && (response.statusCode !== 204)) {
              return new Error("Unreachable endpoint! Response status code: " + response.statusCode);
          }
  
          return false;
      }
docs: Method checks for errors in error and server response
  
  @param {Error|null} error
  @param {Object} response
  @returns {Error|Boolean} if error, will return Error otherwise false
  @protected