Class Error.MethodNotAllowed
- Namespace
- Trellis
- Assembly
- Trellis.Core.dll
HTTP 405 — the HTTP method is not supported by the target resource.
public sealed record Error.MethodNotAllowed : Error, IEquatable<Error>, IEquatable<Error.MethodNotAllowed>
- Inheritance
-
Error.MethodNotAllowed
- Implements
- Inherited Members
- Extension Methods
Constructors
MethodNotAllowed(EquatableArray<string>)
HTTP 405 — the HTTP method is not supported by the target resource.
public MethodNotAllowed(EquatableArray<string> Allow)
Parameters
AllowEquatableArray<string>The set of methods supported by the resource (becomes the
Allowheader).
Properties
Allow
The set of methods supported by the resource (becomes the Allow header).
public EquatableArray<string> Allow { get; init; }
Property Value
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; }