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