Skip to content

Commit 95ab6ce

Browse files
docs: 📜 update error message for forbidden includes to clarify not found status
1 parent 07ea15e commit 95ab6ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/docs/security.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ When forbidden includes are requested, a 403 Forbidden response is returned:
5454
"errors": [{
5555
"status": "403",
5656
"title": "Forbidden Include",
57-
"detail": "The requested include 'sensitive' is not allowed for this endpoint",
57+
"detail": "The requested include 'sensitive' was not found",
5858
"meta": {
5959
"requestedIncludes": ["profile", "sensitive"],
6060
"forbiddenIncludes": ["sensitive"],
@@ -77,4 +77,4 @@ Invalid patterns are logged as warnings during application startup:
7777
```
7878
AllowedIncludesAttribute validation warnings for UsersController.GetUsers:
7979
Pattern 'user.**' contains '**' which is not supported. Use single '*' for wildcards.
80-
```
80+
```

0 commit comments

Comments
 (0)