'UNAUTHENTICATED', 'category' => $this->getCategory(), 'status' => $this->getStatus() ]; } public function getCategory(): string { return 'authentication'; } public function getStatusCode(): int { return $this->status; } public function getHeaders(): array { return $this->headers; } public function getType(): string { return '/errors/401'; } public function getTitle(): ?string { return 'Unauthorized'; } public function getStatus(): ?int { return $this->status; } public function getDetail(): ?string { return $this->message; } public function getInstance(): ?string { return null; } }