client: rename error

This commit is contained in:
aler9
2021-11-03 21:49:24 +01:00
parent ccb8c932a3
commit c1ca81eb74
2 changed files with 11 additions and 11 deletions

View File

@@ -36,15 +36,15 @@ func (e ErrClientSessionHeaderInvalid) Error() string {
return fmt.Sprintf("invalid session header: %v", e.Err)
}
// ErrClientInvalidStatusCode is an error that can be returned by a client.
type ErrClientInvalidStatusCode struct {
// ErrClientBadStatusCode is an error that can be returned by a client.
type ErrClientBadStatusCode struct {
Code base.StatusCode
Message string
}
// Error implements the error interface.
func (e ErrClientInvalidStatusCode) Error() string {
return fmt.Sprintf("invalid status code: %d (%s)", e.Code, e.Message)
func (e ErrClientBadStatusCode) Error() string {
return fmt.Sprintf("bad status code: %d (%s)", e.Code, e.Message)
}
// ErrClientContentTypeMissing is an error that can be returned by a client.