Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Error Response Object - Consistent Error Handling
public class ErrorResponse
{
public HttpStatusCode StatusCode { get; set; }
public string Title { get; set; }
public string Exception { get; set; }
public List<ErrorEntry> Entries { get; set; }
}
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