Class HttpError.ContentTooLarge
- Namespace
- Trellis
- Assembly
- Trellis.Http.Abstractions.dll
HTTP 413 — the request payload exceeds size limits.
public sealed record HttpError.ContentTooLarge : HttpError, ICodedTransportFault, ITransportFault, IEquatable<HttpError>, IEquatable<HttpError.ContentTooLarge>
- Inheritance
-
HttpError.ContentTooLarge
- Implements
- Inherited Members
- Extension Methods
Constructors
ContentTooLarge(long?)
HTTP 413 — the request payload exceeds size limits.
public ContentTooLarge(long? MaxBytes = null)
Parameters
MaxByteslong?Optional maximum accepted size in bytes.
Properties
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
MaxBytes
Optional maximum accepted size in bytes.
public long? MaxBytes { get; init; }
Property Value
- long?
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.