Skip to content

Commit de42efe

Browse files
committed
fix(tracing): Handle 404
1 parent 103d256 commit de42efe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sentry_sdk/tracing.py

+2
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ def set_http_status(self, http_status):
272272
elif 400 <= http_status < 500:
273273
if http_status == 403:
274274
self.set_status("permission_denied")
275+
elif http_status == 404:
276+
self.set_status("not_found")
275277
elif http_status == 429:
276278
self.set_status("resource_exhausted")
277279
elif http_status == 413:

0 commit comments

Comments
 (0)