We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e97677 commit 7d24f3dCopy full SHA for 7d24f3d
1 file changed
gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2
@@ -199,6 +199,9 @@ class {{ service.name }}RestTransport({{ service.name }}Transport):
199
json=body,
200
{%- endif %}
201
)
202
+
203
+ # Raise requests.exceptions.HTTPError if the status code is >= 400
204
+ response.raise_for_status()
205
{%- if not method.void %}
206
207
# Return the response
0 commit comments