We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 157f212 commit d34d3d8Copy full SHA for d34d3d8
.changeset/rich-places-move.md
@@ -0,0 +1,5 @@
1
+---
2
+"github.com/livekit/protocol": patch
3
4
+
5
+Adding more SIP return codes and updating SIP-to-Twirp return code mapping
livekit/sip.go
@@ -134,7 +134,7 @@ func (p *SIPStatus) GRPCStatus() *status.Status {
134
} else if code < 500 {
135
code = codes.InvalidArgument
136
} else if code < 600 {
137
- code = codes.Internal
+ code = codes.FailedPrecondition // 5xx from remote server, per guideline (c) in gRPC docs
138
} else if code < 700 {
139
code = codes.InvalidArgument // Same as 4xx ,but authoratative
140
}
0 commit comments