allow 202 - accepted, which is what we see in production
All checks were successful
Lambda-Zig Build / build (push) Successful in 39s

This commit is contained in:
Emil Lerch 2026-02-04 15:12:41 -08:00
parent f444697d93
commit 5c36a2c979
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -211,7 +211,10 @@ const Event = struct {
var redirect_buffer: [1024]u8 = undefined; var redirect_buffer: [1024]u8 = undefined;
const response = try req.receiveHead(&redirect_buffer); const response = try req.receiveHead(&redirect_buffer);
if (response.head.status != .ok) return error.UnexpectedStatusFromPostResponse; // Lambda Runtime API returns 202 Accepted for successful response posts
if (response.head.status != .ok and response.head.status != .accepted) {
return error.UnexpectedStatusFromPostResponse;
}
} }
}; };