+
+ /**
+ * Get the desired HTTP status code for this exception.
+ */
+ public function getStatusCode(): int
+ {
+ return ($this->getCode() === 0) ? 500 : $this->getCode();
+ }
+
+ /**
+ * Get the desired HTTP headers for this exception.
+ * @return array<mixed>
+ */
+ public function getHeaders(): array
+ {
+ return $this->headers;
+ }
+
+ /**
+ * Set the desired HTTP headers for this exception.
+ * @param array<mixed> $headers
+ */
+ public function setHeaders(array $headers): void
+ {
+ $this->headers = $headers;
+ }