chore: 404 is not an error in most situations

This commit is contained in:
Simon Hartcher 2025-04-24 11:00:14 +10:00
parent 324ed9a7e3
commit 0ac10d5798

View file

@ -405,7 +405,7 @@ pub fn Request(comptime request_action: anytype) type {
); );
defer response.deinit(); defer response.deinit();
if (response.response_code != options.success_http_code) { if (response.response_code != options.success_http_code and response.response_code != 404) {
try reportTraffic(options.client.allocator, "Call Failed", aws_request, response, log.err); try reportTraffic(options.client.allocator, "Call Failed", aws_request, response, log.err);
if (options.diagnostics) |d| { if (options.diagnostics) |d| {
d.http_code = response.response_code; d.http_code = response.response_code;