code = in_array( $code, self::KNOWN, true ) ? $code : self::UNKNOWN; } /** * Error code. */ public function code(): string { return $this->code; } /** * Whether every following call with the same credentials would fail the same way. */ public function is_fatal(): bool { return in_array( $this->code, self::FATAL, true ); } }