29 lines
564 B
PHP
29 lines
564 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.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getStatusCode(): int
|
|
{
|
|
return Response::HTTP_NOT_FOUND;
|
|
}
|
|
|
|
/**
|
|
* Returns response headers.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getHeaders(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|