-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathIError.cs
More file actions
55 lines (46 loc) · 1.67 KB
/
IError.cs
File metadata and controls
55 lines (46 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System.Net;
namespace JSONAPI.Documents
{
/// <summary>
/// Represents an error appearing in the `errors` array at the document top-level
/// </summary>
public interface IError
{
/// <summary>
/// a unique identifier for this particular occurrence of the problem.
/// </summary>
string Id { get; }
/// <summary>
/// link to information about this error
/// </summary>
ILink AboutLink { get; }
/// <summary>
/// the HTTP status code applicable to this problem, expressed as a string value.
/// </summary>
HttpStatusCode Status { get; }
/// <summary>
/// an application-specific error code, expressed as a string value.
/// </summary>
string Code { get; }
/// <summary>
/// a short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
/// </summary>
string Title { get; }
/// <summary>
/// a human-readable explanation specific to this occurrence of the problem.
/// </summary>
string Detail { get; }
/// <summary>
/// a JSON Pointer [RFC6901] to the associated entity in the request document
/// </summary>
string Pointer { get; }
/// <summary>
/// a string indicating which query parameter caused the error.
/// </summary>
string Parameter { get; }
/// <summary>
/// a meta object containing non-standard meta-information about the error.
/// </summary>
IMetadata Metadata { get; }
}
}