public static SendNotificationError ThrottleLimitExceeded(SendNotificationResponseDebugHeaders responseDebugHeaders) => new SendNotificationError(Values.ThrottleLimitExceeded) { ResponseDebugHeaders = responseDebugHeaders };
public static SendNotificationError PayloadTooLarge(SendNotificationResponseDebugHeaders responseDebugHeaders) => new SendNotificationError(Values.PayloadTooLarge) { ResponseDebugHeaders = responseDebugHeaders };
public static SendNotificationError ServiceUnavailable(SendNotificationResponseDebugHeaders responseDebugHeaders) => new SendNotificationError(Values.ServiceUnavailable) { ResponseDebugHeaders = responseDebugHeaders };
public static SendNotificationError InternalServerError(SendNotificationResponseDebugHeaders responseDebugHeaders) => new SendNotificationError(Values.InternalServerError) { ResponseDebugHeaders = responseDebugHeaders };
// NOTE: due to the nature of WNS's response debug headers, we still return these with an HttpError _just in case_ they are populated public static SendNotificationError HttpError(HttpStatusCode httpStatusCode, SendNotificationResponseDebugHeaders responseDebugHeaders) => new SendNotificationError(Values.HttpError) { HttpStatusCode = httpStatusCode, ResponseDebugHeaders = responseDebugHeaders };
public static SendNotificationError CodeHasBug(SendNotificationResponseDebugHeaders responseDebugHeaders) => new SendNotificationError(Values.CodeHasBug) { ResponseDebugHeaders = responseDebugHeaders };
public static SendNotificationError ChannelNotFound(SendNotificationResponseDebugHeaders responseDebugHeaders) => new SendNotificationError(Values.ChannelNotFound) { ResponseDebugHeaders = responseDebugHeaders };
public static SendNotificationError AccessTokenIsMismatched(SendNotificationResponseDebugHeaders responseDebugHeaders) => new SendNotificationError(Values.AccessTokenIsMismatched) { ResponseDebugHeaders = responseDebugHeaders };