2015-12-06 18:58:49 +00:00
|
|
|
<?php
|
|
|
|
|
2017-07-01 20:29:49 +00:00
|
|
|
namespace Pterodactyl\Exceptions\Repository;
|
2015-12-06 18:58:49 +00:00
|
|
|
|
2019-03-03 21:57:18 +00:00
|
|
|
use Illuminate\Http\Response;
|
|
|
|
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
|
|
|
|
|
|
|
|
class RecordNotFoundException extends RepositoryException implements HttpExceptionInterface
|
2016-12-07 22:46:38 +00:00
|
|
|
{
|
2017-09-24 17:32:29 +00:00
|
|
|
/**
|
2019-03-03 21:57:18 +00:00
|
|
|
* Returns the status code.
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
public function getStatusCode(): int
|
2019-03-03 21:57:18 +00:00
|
|
|
{
|
|
|
|
return Response::HTTP_NOT_FOUND;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns response headers.
|
2017-09-24 17:32:29 +00:00
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
public function getHeaders(): array
|
2017-09-24 17:32:29 +00:00
|
|
|
{
|
2019-03-03 21:57:18 +00:00
|
|
|
return [];
|
2017-09-24 17:32:29 +00:00
|
|
|
}
|
2015-12-06 18:58:49 +00:00
|
|
|
}
|