errorCode = $errorCode; $this->httpStatus = $httpStatus; parent::__construct($message); } /** The message as plain text for JSON responses (undoes the escaping applied at the throw site). */ public function reason(): string { return wp_specialchars_decode($this->getMessage(), ENT_QUOTES); } }