Table of Contents

Class ErrorResponse

Namespace
Velvet
Assembly
Velvet.Docs.dll

An error a route renders with a status, as React Router's ErrorResponse: the 404 a navigation to a path no route matches commits. Hooks.UseRouteError returns it to the errorElement that renders it.

public sealed class ErrorResponse : Exception
Inheritance
object
Exception
ErrorResponse

Constructors

ErrorResponse(int, string, object?)

Properties

Detail

What the response carries; for a 404, the message naming the path that matched nothing.

Status

The HTTP-style status: 404 for a path no route matched.

StatusText

The status's reason phrase: "Not Found" for a 404.