Class HttpError.MethodNotAllowed
- Namespace
- Trellis
- Assembly
- Trellis.Http.Abstractions.dll
HTTP 405 — the HTTP method is not supported by the target resource.
public sealed record HttpError.MethodNotAllowed : HttpError, ICodedTransportFault, ITransportFault, IEquatable<HttpError>, IEquatable<HttpError.MethodNotAllowed>
- Inheritance
-
HttpError.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, HTTP-aligned identifier for this case (for example
"method-not-allowed" or "precondition-failed").
public override string Kind { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.