Skip to content

Commit 1cd66d8

Browse files
committed
Fix exception message for 404
1 parent 60921c5 commit 1cd66d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ProxyAction.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ public function run(): Response
4141
$token = $this->request->headers->get('X-Access-Token');
4242
if ($token !== $this->accessToken) {
4343
if ($this->throw404Exception) {
44-
throw new NotFoundHttpException('Access token is invalid');
44+
throw new NotFoundHttpException('Page not found');
4545
}
4646
throw new ForbiddenHttpException('Access token is invalid');
4747
}
4848
}
4949
if (!$url) {
5050
if ($this->throw404Exception) {
51-
throw new NotFoundHttpException('Proxy URL is not set');
51+
throw new NotFoundHttpException('Page not found');
5252
}
5353
throw new BadRequestHttpException('Proxy URL is not set');
5454
}

0 commit comments

Comments
 (0)