Skip to content

Commit

Permalink
Updated gRPC code Cancelled replaced with HTTP code 499 (#2957)
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-sumit committed Oct 17, 2022
1 parent bfd7b18 commit 662d3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/errors.go
Expand Up @@ -38,7 +38,7 @@ func HTTPStatusFromCode(code codes.Code) int {
case codes.OK:
return http.StatusOK
case codes.Canceled:
return http.StatusRequestTimeout
return 499
case codes.Unknown:
return http.StatusInternalServerError
case codes.InvalidArgument:
Expand Down

0 comments on commit 662d3f8

Please sign in to comment.