Skip to content

Commit

Permalink
fix: requests cancelled by clients should be 4xx not 5xx (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari authored Sep 4, 2024
1 parent 0b5ce11 commit 41eb32f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/openapiv2/apidocs.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openfga/v1/errors_ignore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ enum ErrorCode {
duplicate_contextual_tuple = 2055;
invalid_authorization_model = 2056;
unsupported_schema_version = 2057;
cancelled = 2058;
}

enum UnprocessableContentErrorCode {
Expand All @@ -85,7 +86,6 @@ enum InternalErrorCode {
// 4000 level errors are returned due to internal error

internal_error = 4000;
cancelled = 4003;
deadline_exceeded = 4004;
already_exists = 4005;
resource_exhausted = 4006;
Expand Down
16 changes: 8 additions & 8 deletions proto/openfga/v1/errors_ignore.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 41eb32f

Please sign in to comment.