func NewBasicAuthNotFound() *BasicAuthNotFound {
	return &BasicAuthNotFound{}
}
NewBasicAuthNotFound creates a BasicAuthNotFound with default headers values
package groups
import (
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/fugue/fugue-client/models"
)
type BasicAuthReader struct {
	formats strfmt.Registry
}
func (o *BasicAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewBasicAuthOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewBasicAuthBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewBasicAuthUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewBasicAuthForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewBasicAuthNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewBasicAuthInternalServerError()
		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 NewBasicAuthOK() *BasicAuthOK {
	return &BasicAuthOK{}
}
type BasicAuthOK struct {
}
func (o *BasicAuthOK) Error() string {
	return fmt.Sprintf("[PATCH /users][%d] basicAuthOK ", 200)
}
func (o *BasicAuthOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewBasicAuthBadRequest() *BasicAuthBadRequest {
	return &BasicAuthBadRequest{}
}
type BasicAuthBadRequest struct {
	Payload *models.BadRequestError
}
func (o *BasicAuthBadRequest) Error() string {
	return fmt.Sprintf("[PATCH /users][%d] basicAuthBadRequest  %+v", 400, o.Payload)
}
func (o *BasicAuthBadRequest) GetPayload() *models.BadRequestError {
	return o.Payload
}
func (o *BasicAuthBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.BadRequestError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewBasicAuthUnauthorized() *BasicAuthUnauthorized {
	return &BasicAuthUnauthorized{}
}
type BasicAuthUnauthorized struct {
	Payload *models.AuthenticationError
}
func (o *BasicAuthUnauthorized) Error() string {
	return fmt.Sprintf("[PATCH /users][%d] basicAuthUnauthorized  %+v", 401, o.Payload)
}
func (o *BasicAuthUnauthorized) GetPayload() *models.AuthenticationError {
	return o.Payload
}
func (o *BasicAuthUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.AuthenticationError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewBasicAuthForbidden() *BasicAuthForbidden {
	return &BasicAuthForbidden{}
}
type BasicAuthForbidden struct {
	Payload *models.AuthorizationError
}
func (o *BasicAuthForbidden) Error() string {
	return fmt.Sprintf("[PATCH /users][%d] basicAuthForbidden  %+v", 403, o.Payload)
}
func (o *BasicAuthForbidden) GetPayload() *models.AuthorizationError {
	return o.Payload
}
func (o *BasicAuthForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.AuthorizationError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}