Last active
April 20, 2021 23:43
-
-
Save ankitvijay/dc32271b90baa1c541ef2d2b34ec2b32 to your computer and use it in GitHub Desktop.
Error Response Object - Consistent Error Handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ErrorResponse | |
{ | |
public HttpStatusCode StatusCode { get; set; } | |
public string Title { get; set; } | |
public string Exception { get; set; } | |
public List<ErrorEntry> Entries { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ErrorEntry | |
{ | |
public string Code { get; set; } | |
public string Title { get; set; } | |
public string Source { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment