Skip to content

httpError

Throws a RoutingError(status) with any HTTP status code. Use this for status codes not covered by the named helpers.

function httpError(status: number): never
import { httpError } from '$houdini'
if (!data.resource) httpError(422)