Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit dbb7b66

Browse files
committed
feat: define NotFoundOrForbidden as common error type
1 parent 0f08f8c commit dbb7b66

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

polyproto/main.tsp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,16 @@ import "./core/main.tsp";
33
import "./mls/main.tsp";
44

55
namespace polyproto;
6+
7+
using Http;
8+
9+
namespace models.errors {
10+
@doc("""
11+
The client either does not have the access rights to access this resource, or this resource
12+
does not exist. The ambiguity about the actual error has the purpose of protecting the targeted
13+
resource from information leaks.
14+
""")
15+
model NotFoundOrForbidden {
16+
...NotFoundResponse;
17+
}
18+
}

0 commit comments

Comments
 (0)