using System.Net;
namespace JSONAPI.Documents
{
///
/// Represents an error appearing in the `errors` array at the document top-level
///
public interface IError
{
///
/// a unique identifier for this particular occurrence of the problem.
///
string Id { get; }
///
/// link to information about this error
///
ILink AboutLink { get; }
///
/// the HTTP status code applicable to this problem, expressed as a string value.
///
HttpStatusCode Status { get; }
///
/// an application-specific error code, expressed as a string value.
///
string Code { get; }
///
/// a short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
///
string Title { get; }
///
/// a human-readable explanation specific to this occurrence of the problem.
///
string Detail { get; }
///
/// a JSON Pointer [RFC6901] to the associated entity in the request document
///
string Pointer { get; }
///
/// a string indicating which query parameter caused the error.
///
string Parameter { get; }
///
/// a meta object containing non-standard meta-information about the error.
///
IMetadata Metadata { get; }
}
}