MSP-8172 Add vendor

This commit is contained in:
Синельник Тимур Романович committed 2026-07-29 12:52:27 +03:00
1 parent 5175d87e08
commit eb066cb055
2619 files changed
+757077 -2

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
package httpcli
import (
"fmt"
"net/url"
)
// ErrorResponse represents an HTTP error response with status code and body.
//
// nolint:errname
type ErrorResponse struct {
Url *url.URL
StatusCode int
Body []byte
}
// Error returns a formatted error message containing the URL, status code, and body.
func (e ErrorResponse) Error() string {
return fmt.Sprintf("http call error: url=%s status_code=%d, body=%s", e.Url.String(), e.StatusCode, e.Body)
}