From f5eafa8b52b793cfc21724e3773bddec405dbc70 Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Wed, 25 Jun 2025 16:52:17 -0400 Subject: [PATCH] refactor: update error handling for HTTP response status codes --- client/create.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/create.go b/client/create.go index c74c06e..402df7e 100755 --- a/client/create.go +++ b/client/create.go @@ -9,8 +9,9 @@ import ( ) type EmailCreateResponse struct { - Id string `json:"id"` - CreatedAt time.Time `json:"created_at"` + Id string `json:"id"` + CreatedAt time.Time `json:"created_at"` + LimitRemaining int `json:"limit_remaining,omitempty"` } type ErrorResponse struct {