From 5c36a2c979b0bd4f0cbda3d64fb997f341085bc9 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Wed, 4 Feb 2026 15:12:41 -0800 Subject: [PATCH] allow 202 - accepted, which is what we see in production --- src/lambda.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lambda.zig b/src/lambda.zig index 0d5e571..43e93ea 100644 --- a/src/lambda.zig +++ b/src/lambda.zig @@ -211,7 +211,10 @@ const Event = struct { var redirect_buffer: [1024]u8 = undefined; 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; + } } };