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.
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getStatusCode()
|
|
|
|
{
|
|
|
|
return Response::HTTP_NOT_FOUND;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns response headers.
|
2017-12-17 20:57:05 +00:00
|
|
|
*
|
2019-03-03 21:57:18 +00:00
|
|
|
* @return array
|
2017-09-24 17:32:29 +00:00
|
|
|
*/
|
2019-03-03 21:57:18 +00:00
|
|
|
public function getHeaders()
|
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
|
|
|
}
|