File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed
app/Exceptions/Repository Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 22
33namespace Pterodactyl \Exceptions \Repository ;
44
5- class RecordNotFoundException extends RepositoryException
5+ use Illuminate \Http \Response ;
6+ use Symfony \Component \HttpKernel \Exception \HttpExceptionInterface ;
7+
8+ class RecordNotFoundException extends RepositoryException implements HttpExceptionInterface
69{
710 /**
8- * Handle request to render this exception to a user. Returns the default
9- * 404 page view.
11+ * Returns the status code.
12+ *
13+ * @return int
14+ */
15+ public function getStatusCode ()
16+ {
17+ return Response::HTTP_NOT_FOUND ;
18+ }
19+
20+ /**
21+ * Returns response headers.
1022 *
11- * @param \Illuminate\Http\Request $request
12- * @return \Illuminate\Http\Response
23+ * @return array
1324 */
14- public function render ( $ request )
25+ public function getHeaders ( )
1526 {
16- if (! config ('app.debug ' )) {
17- return response ()->view ('errors.404 ' , [], 404 );
18- }
27+ return [];
1928 }
2029}
You can’t perform that action at this time.
0 commit comments