Skip to main content

apiNotFoundResponse

apiNotFoundResponse<TBody>(resData, headers?): Response

Sends a response with HTTP status code 404 (Not Found).

Type Parameters

TBody

TBody

Parameters

resData

TBody

The response data to be sent to the client.

headers?

HeadersInit

Optional headers to include in the response.

Returns

Response