[response.status.set]

response.status.set is a slot in the response namespace, in Hyperlambda, the language of Magic Cloud. Overrides the HTTP status code returned to the caller (e.g. 201 Created, 404 Not Found, 500 Internal Error).

  • Value (http-status-code,integer,number), required: HTTP status code to set

JSON declaration

This is the complete declaration of response.status.set, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "response.status.set",
  "description": "Overrides the HTTP status code returned to the caller (e.g. 201 Created, 404 Not Found, 500 Internal Error)",
  "signature": {
    "input": {
      "kind": "http-status-code,integer,number",
      "description": "HTTP status code to set",
      "required": true,
      "mode": "ValueOrExpression"
    }
  }
}

← response.headers.set all response.* slots