Skip to content

Commit

Permalink
Rerror: Add 502 code
Browse files Browse the repository at this point in the history
  • Loading branch information
andeya committed Mar 12, 2018
1 parent bfa9384 commit 79dbb60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ const (
CodeNotFound = 404
CodePtypeNotAllowed = 405
CodeHandleTimeout = 408
CodeBadGateway = 502

// CodeConflict = 409
// CodeUnsupportedTx = 410
// CodeUnsupportedCodecType = 415
// CodeInternalServerError = 500
// CodeBadGateway = 502
// CodeServiceUnavailable = 503
// CodeGatewayTimeout = 504
// CodeVariantAlsoNegotiates = 506
Expand Down Expand Up @@ -96,6 +96,8 @@ func CodeText(rerrCode int32) string {
return "Handle Timeout"
case CodePtypeNotAllowed:
return "Packet Type Not Allowed"
case CodeBadGateway:
return "Bad Gateway"
case CodeUnknownError:
fallthrough
default:
Expand Down

0 comments on commit 79dbb60

Please sign in to comment.