Table of Contents

Class Error.BadRequest

Namespace
Trellis
Assembly
Trellis.Core.dll

HTTP 400 — the request is syntactically or semantically malformed.

public sealed record Error.BadRequest : Error, IEquatable<Error>, IEquatable<Error.BadRequest>
Inheritance
Error.BadRequest
Implements
Inherited Members
Extension Methods

Constructors

BadRequest(string, InputPointer?)

HTTP 400 — the request is syntactically or semantically malformed.

public BadRequest(string ReasonCode, InputPointer? At = null)

Parameters

ReasonCode string

Machine-readable code identifying why the request was rejected.

At InputPointer?

Optional pointer locating the offending input.

Properties

At

Optional pointer locating the offending input.

public InputPointer? At { get; init; }

Property Value

InputPointer?

Code

Gets the per-instance machine-readable code. Defaults to Kind; cases whose payload carries a per-instance ReasonCode override this.

public override string Code { get; }

Property Value

string

Kind

Gets the stable, IANA-aligned identifier for this case (e.g. "not-found", "unprocessable-content"). Suitable for telemetry, problem-details type URI synthesis, and wire serialization.

public override string Kind { get; }

Property Value

string

ReasonCode

Machine-readable code identifying why the request was rejected.

public string ReasonCode { get; init; }

Property Value

string