add http status code to APIResponse

This commit is contained in:
Vivek Kumar 2024-06-17 11:21:00 +05:30
parent 00c093074c
commit b01d7ac59d
No known key found for this signature in database
GPG key ID: 81605FDFBA4EF440
3 changed files with 26 additions and 23 deletions

View file

@ -60,4 +60,7 @@ type APIResponse struct {
ErrorType ErrorType `json:"errorType"`
// Error is the error message, if this is an error response.
Error string `json:"error"`
// StatusCode is the HTTP status code of the response.
HTTPStatusCode int `json:"httpStatusCode"`
}