Skip to content

Commit

Permalink
feat: add forbidden response error (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vic-Dev authored Sep 3, 2024
1 parent c96ec77 commit 0b5ce11
Show file tree
Hide file tree
Showing 3 changed files with 350 additions and 157 deletions.
6 changes: 6 additions & 0 deletions openfga/v1/errors_ignore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,9 @@ message AbortedMessageResponse {
}

message ErrorMessageRequest {}

message ForbiddenResponse {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {example: "{\"code\":\"forbidden\", \"message\":\"the principal is not authorized to perform the action\"}"};
ErrorCode code = 1;
string message = 2;
}
Loading

0 comments on commit 0b5ce11

Please sign in to comment.