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 <swast@google.com>
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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy