Skip to content

Commit f0964e6

Browse files
committed
Add application/problem+json and application/problem+xml media types
1 parent a082877 commit f0964e6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Source/Boxed.AspNetCore/ContentType.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ public static class ContentType
3434
/// <summary>Portable Network Graphics; Registered,[8] Defined in RFC 2083.</summary>
3535
public const string Png = "image/png";
3636

37-
/// <summary>REST'ful JavaScript Object Notation JSON; Defined at http://restfuljson.org/.</summary>
37+
/// <summary>Problem Details JavaScript Object Notation (JSON); Defined at https://tools.ietf.org/html/rfc7807.</summary>
38+
public const string ProblemJson = "application/problem+json";
39+
40+
/// <summary>Problem Details Extensible Markup Language (XML); Defined at https://tools.ietf.org/html/rfc7807.</summary>
41+
public const string ProblemXml = "application/problem+xml";
42+
43+
/// <summary>REST'ful JavaScript Object Notation (JSON); Defined at http://restfuljson.org/.</summary>
3844
public const string RestfulJson = "application/vnd.restful+json";
3945

4046
/// <summary>Rich Site Summary; Defined by Harvard Law.</summary>

0 commit comments

Comments
 (0)