Skip to content

Commit

Permalink
fix: return 403 when VPC-SC violation happens (googleapis#1131)
Browse files Browse the repository at this point in the history
This is fixing the issue where VPC-SC violation is not returning 403. Error message map does not recognize VPCSC policy violation error and will default to return an internal server error.

Co-authored-by: Tim Swast <swast@google.com>
  • Loading branch information
2 people authored and abdelmegahedgoogle committed Apr 17, 2023
1 parent e8f0d75 commit d32a5a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions google/cloud/bigquery/job/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"invalidQuery": http.client.BAD_REQUEST,
"notFound": http.client.NOT_FOUND,
"notImplemented": http.client.NOT_IMPLEMENTED,
"policyViolation": http.client.FORBIDDEN,
"quotaExceeded": http.client.FORBIDDEN,
"rateLimitExceeded": http.client.FORBIDDEN,
"resourceInUse": http.client.BAD_REQUEST,
Expand Down

0 comments on commit d32a5a0

Please sign in to comment.