set status code
This block is part of the http connection group and was last modified in core v10.4.28.
set status code v10.4.28 Updates the status code
In pins 2 + flow
- flow
flow - connection required
httpconnection - code required
number
Out pins 1 + flow
- flow
flow - connection
httpconnection
Sets the HTTP status code on the response without sending anything : pair it with a set_json/set_text reply or the endpoint's default response. An unwired code pin defaults to 200; an unwired or nil connection does nothing and outputs nil.
A typical wiring for set status code: a function trigger starts the flow; the flow out pin feeds debug.
Version history
Introduced in v10.4.28.
Back to
http connection Return to the main group to view all sub-groups Back to response Return to the group to view all blocks within this group 