constructor(
    message,
    status = httpStatus.INTERNAL_SERVER_ERROR,
    isPublic = false,
  ) {
    super(message, status, isPublic);
  }
Creates an API error.

@param {String} message - Error message.
@param {Number} status - HTTP status code of error.
@param {Boolean} isPublic - Whether the message should be visible to user or not.