# Response.status() method · @imqueue/http-protect

Source: https://imqueue.org/api/http-protect/latest/http-protect.response.status/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/http-protect 3.0.1 — generated reference, not hand-written

Sets the HTTP status code. Called with 429 or 418 before the body is sent.

**Signature:**

```typescript
status(code: number): any;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| code | number | the status code to respond with |


**Returns:**

any

Ignored — the middlewares never read it, so returning `this` for chaining is fine.

