Skip to content

Commit

Permalink
Return HTTP status code 429 on google.rpc.Code.RESOURCE_EXHAUSTED (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
mangchiandjjoe authored Feb 22, 2017
1 parent 5b25d57 commit 0d04d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/endpoints/src/api_manager/service_control/proto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ Status Proto::ConvertAllocateQuotaResponse(
case ::google::api::servicecontrol::v1::QuotaError::RESOURCE_EXHAUSTED:
// Quota allocation failed.
// Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
return Status(Code::PERMISSION_DENIED, "Quota allocation failed.");
return Status(Code::RESOURCE_EXHAUSTED, "Quota allocation failed.");

case ::google::api::servicecontrol::v1::QuotaError::PROJECT_SUSPENDED:
// Consumer project has been suspended.
Expand Down

0 comments on commit 0d04d7a

Please sign in to comment.