Skip to content

Commit

Permalink
Changed to use more appropriate http status code for ResourceExhausted.
Browse files Browse the repository at this point in the history
  • Loading branch information
eleniums committed Mar 20, 2018
1 parent 58f78b9 commit bd2bfeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func HTTPStatusFromCode(code codes.Code) int {
case codes.Unauthenticated:
return http.StatusUnauthorized
case codes.ResourceExhausted:
return http.StatusServiceUnavailable
return http.StatusRequestEntityTooLarge
case codes.FailedPrecondition:
return http.StatusPreconditionFailed
case codes.Aborted:
Expand Down

0 comments on commit bd2bfeb

Please sign in to comment.