func NewGetClientsUnauthorized() *GetClientsUnauthorized {
	return &GetClientsUnauthorized{}
}
NewGetClientsUnauthorized creates a GetClientsUnauthorized with default headers values
package client
import (
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	strfmt "github.com/go-openapi/strfmt"
	models "github.com/gotify/go-api-client/v2/models"
)
type GetClientsReader struct {
	formats strfmt.Registry
}
func (o *GetClientsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetClientsOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 401:
		result := NewGetClientsUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewGetClientsForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("unknown error", response, response.Code())
	}
}
func NewGetClientsOK() *GetClientsOK {
	return &GetClientsOK{}
}
type GetClientsOK struct {
	Payload []*models.Client
}
func (o *GetClientsOK) Error() string {
	return fmt.Sprintf("[GET /client][%d] getClientsOK  %+v", 200, o.Payload)
}
func (o *GetClientsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}