Reference

textError

Creates a plain-text error response with a default `text/plain` content type.

Signature

function textError(message: string, status: number, init: ResponseInit): Response