provider = $provider; $this->provider_status = $provider_status; if ( 401 === $provider_status || 403 === $provider_status ) { $this->http_status = $provider_status; } parent::__construct( $message ?: __( 'Provider authentication failed.', 'ai-product-tools' ), $code, $previous ); } public function getProvider(): string { return $this->provider; } public function getProviderStatus(): int { return $this->provider_status; } public function getUserMessage(): string { return __( 'Configuration issue, please contact admin', 'ai-product-tools' ); } }