Statement
Write handler(event) for a serverless function behind API Gateway (HTTP API). Only POST is accepted: any other method → 405. The body is JSON with sku (non-empty string) and qty (integer ≥ 1). Invalid JSON → 400; invalid fields → 422 with { errors: [...] } listing the fields ("sku", "qty"). Otherwise → 201 with { id: "ord_" + sku, sku, qty }. Always return { statusCode, body } with body as a JSON string.