Skip to content

Commit f5daa9b

Browse files
fix: return 403 when VPC-SC violation happens (#1131)
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 <[email protected]>
1 parent 1c7dbdd commit f5daa9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

google/cloud/bigquery/job/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"invalidQuery": http.client.BAD_REQUEST,
4646
"notFound": http.client.NOT_FOUND,
4747
"notImplemented": http.client.NOT_IMPLEMENTED,
48+
"policyViolation": http.client.FORBIDDEN,
4849
"quotaExceeded": http.client.FORBIDDEN,
4950
"rateLimitExceeded": http.client.FORBIDDEN,
5051
"resourceInUse": http.client.BAD_REQUEST,

0 commit comments

Comments
 (0)