Skip to content

@adrianhall/cloudflare-toolkit


@adrianhall/cloudflare-toolkit / index / methodNotAllowed

Function: methodNotAllowed()

methodNotAllowed(input?): ProblemDetailsError

Defined in: src/lib/errors/generators.ts:74

Create a 405 Method Not Allowed ProblemDetailsError.

Parameters

input?

HttpErrorInput<Record<string, unknown>>

Optional problem details fields (detail, type, instance, extensions).

Returns

ProblemDetailsError

A 405-status ProblemDetailsError ready to throw.