method MockResponse.prototype.status
MockResponse.prototype.status(code: number): IResponse

Sets the response status code.

Parameters

code: number

HTTP status code

Return Type

IResponse

This response, for chaining

Usage

import { MockResponse } from "testing/src/index.ts";