add http status code to APIResponse

This commit is contained in:
Vivek Kumar 2024-06-17 11:26:53 +05:30
parent 34c2e3ebd3
commit 8480eefde5
No known key found for this signature in database
GPG key ID: 81605FDFBA4EF440

View file

@ -61,6 +61,6 @@ type APIResponse struct {
// 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 is the HTTP status code of the response.
HTTPStatusCode int `json:"httpStatusCode"`
}