HubSpotError.cs from hubspot-net/HubSpot.NET
// Source: https://github.com/hubspot-net/HubSpot.NET | License: MIT | Copyright 2018 Squared Up
// Provided via justclaw.it.com; keep this notice with the code.
namespace HubSpot.NET.Api.OAuth.Dto
{
using System.Net;
using System.Runtime.Serialization;
[DataContract]
public class HubSpotError
{
[DataMember(Name = "error")]
public string ErrorCode { get; set; }
[DataMember(Name = "error_description")]
public string Description { get; set; }
public HttpStatusCode StatusCode { get; set; }
public HubSpotError() { }
public HubSpotError(string code, string desc)
{
ErrorCode = code;
Description = desc;
}
public HubSpotError(HttpStatusCode code, string desc)
{
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key