Skip to main content
Version: Streamsheets 3.0

HTTP.RESPOND

Premium

Sends a HTTP response for the HTTP request identified by the RequestId

Syntax

=HTTP.RESPOND(RequestId, [Body], [StatusCode], [HeadersJSON])

Arguments

NameTypeDescription
RequestIdStringRequestId of the HTTP request that should be responded to.
Body (optional)JSONBody of the HTTP response.
StatusCode (optional)StringStatus code of the HTTP response. Defaults to 200.
HeadersJSON (optional)JSONHTTP headers of the HTTP response.

Return

TypeDescription
Boolean,ErrorReturns TRUE or in case of an error the corresponding error-code.

Examples

FormulaResultComment