cbcf62086f
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
25 lines
510 B
PHP
25 lines
510 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Exceptions\Repository;
|
|
|
|
use Illuminate\Http\Response;
|
|
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
|
|
|
|
class RecordNotFoundException extends RepositoryException implements HttpExceptionInterface
|
|
{
|
|
/**
|
|
* Returns the status code.
|
|
*/
|
|
public function getStatusCode(): int
|
|
{
|
|
return Response::HTTP_NOT_FOUND;
|
|
}
|
|
|
|
/**
|
|
* Returns response headers.
|
|
*/
|
|
public function getHeaders(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|