How do i read the http status in Azure Functions v4

Leo 0 Reputation points
2023-10-31T10:59:39.0966667+00:00

Hello,

I'm writing an API in JavaScript using an Azure Functions v4 Http Trigger and I don't know how to read the http status set by the API after a request has been made (I'm not looking to set the status myself in this instance).

It seems this was quite straightforward to achieve in AZ Functions v3 by using 'context.res.status' but i can't seem to find the equivalent in v4?

Thanks.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,073 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.