79421159

Date: 2025-02-07 14:13:11
Score: 0.5
Natty:
Report link

Very simple fix for this, which isn't mentioned anywhere in documentation. When returning the response, you need statusCode, not status.

Using the following response instead resolved the issue:

  let response = {
    statusCode: 200,
    headers: {
      "Content-Type": "text/html",
    },
    body: content,
  };

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: carbaretta