Skip to content

Commit 0134637

Browse files
render 404 so it wont appear in logs
1 parent cd7a212 commit 0134637

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Exceptions/NotFoundException.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@
22

33
namespace JustBetter\DynamicsClient\Exceptions;
44

5-
class NotFoundException extends DynamicsException {}
5+
use Illuminate\Http\Request;
6+
use Illuminate\Http\Response;
7+
8+
class NotFoundException extends DynamicsException {
9+
10+
public function render(Request $request): Response
11+
{
12+
return response(null, 404);
13+
}
14+
}

0 commit comments

Comments
 (0)