Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​AspNetCore.​Mvc.​ProblemDetails
Assembly: Microsoft.AspNetCore.Http.Abstractions
Inheritance: object → ProblemDetails
A machine-readable format for specifying errors in HTTP API responses based on <see href="https://tools.ietf.org/html/rfc7807" /> .
Properties
public
string
Type
A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when
dereferenced, it provide human-readable documentation for the problem type
(e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be
"about:blank".
public
string
Title
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence
of the problem, except for purposes of localization(e.g., using proactive content negotiation;
see[RFC7231], Section 3.4).
public
int?
Status
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
public
string
Detail
A human-readable explanation specific to this occurrence of the problem.
public
string
Instance
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
public
System.​Collections.​Generic.​IDictionary<​string, object>
Extensions
Gets the <see cref="T:System.Collections.Generic.IDictionary`2" /> for extension members.
<para>
Problem type definitions MAY extend the problem details object with additional members. Extension members appear in the same namespace as
other members of a problem type.
</para>
Remarks The round-tripping behavior for <see cref="P:Microsoft.AspNetCore.Mvc.ProblemDetails.Extensions" /> is determined by the implementation of the Input \ Output formatters.
In particular, complex types or collection types may not round-trip to the original type when using the built-in JSON or XML formatters.
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object