<?php

declare(strict_types=1);

namespace Builder\Core\Exceptions;

use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;

final class ResourceNotFoundException extends BuilderException implements HttpExceptionInterface
{
    public static function forSlug(string $slug): self
    {
        return new self("Resource '{$slug}' not found.");
    }

    public function getStatusCode(): int
    {
        return 404;
    }

    /** @return array<string, string> */
    public function getHeaders(): array
    {
        return [];
    }
}
