constructor({
    message,
    errors,
    stack,
    status = httpStatus.INTERNAL_SERVER_ERROR,
    isPublic = false,
  }) {
    super({
      message, errors, status, isPublic, stack,
    });
  }
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.