func NewCreateGroupInternalServerError() *CreateGroupInternalServerError {
	return &CreateGroupInternalServerError{}
}
NewCreateGroupInternalServerError creates a CreateGroupInternalServerError 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 CreateGroupReader struct {
	formats strfmt.Registry
}
func (o *CreateGroupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 201:
		result := NewCreateGroupCreated()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewCreateGroupBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewCreateGroupUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewCreateGroupForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewCreateGroupNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewCreateGroupInternalServerError()
		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 NewCreateGroupCreated() *CreateGroupCreated {
	return &CreateGroupCreated{}
}
type CreateGroupCreated struct {
	Payload *models.Group
}
func (o *CreateGroupCreated) Error() string {
	return fmt.Sprintf("[POST /groups][%d] createGroupCreated  %+v", 201, o.Payload)
}
func (o *CreateGroupCreated) GetPayload() *models.Group {
	return o.Payload
}
func (o *CreateGroupCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.Group)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewCreateGroupBadRequest() *CreateGroupBadRequest {
	return &CreateGroupBadRequest{}
}
type CreateGroupBadRequest struct {
	Payload *models.BadRequestError
}
func (o *CreateGroupBadRequest) Error() string {
	return fmt.Sprintf("[POST /groups][%d] createGroupBadRequest  %+v", 400, o.Payload)
}
func (o *CreateGroupBadRequest) GetPayload() *models.BadRequestError {
	return o.Payload
}
func (o *CreateGroupBadRequest) 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 NewCreateGroupUnauthorized() *CreateGroupUnauthorized {
	return &CreateGroupUnauthorized{}
}
type CreateGroupUnauthorized struct {
	Payload *models.AuthenticationError
}
func (o *CreateGroupUnauthorized) Error() string {
	return fmt.Sprintf("[POST /groups][%d] createGroupUnauthorized  %+v", 401, o.Payload)
}
func (o *CreateGroupUnauthorized) GetPayload() *models.AuthenticationError {
	return o.Payload
}
func (o *CreateGroupUnauthorized) 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 NewCreateGroupForbidden() *CreateGroupForbidden {
	return &CreateGroupForbidden{}
}
type CreateGroupForbidden struct {
	Payload *models.AuthorizationError
}
func (o *CreateGroupForbidden) Error() string {
	return fmt.Sprintf("[POST /groups][%d] createGroupForbidden  %+v", 403, o.Payload)
}
func (o *CreateGroupForbidden) GetPayload() *models.AuthorizationError {
	return o.Payload
}
func (o *CreateGroupForbidden) 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
}
func NewCreateGroupNotFound() *CreateGroupNotFound {
	return &CreateGroupNotFound{}
}
type CreateGroupNotFound struct {
	Payload *models.NotFoundError
}
func (o *CreateGroupNotFound) Error() string {
	return fmt.Sprintf("[POST /groups][%d] createGroupNotFound  %+v", 404, o.Payload)
}
func (o *CreateGroupNotFound) GetPayload() *models.NotFoundError {
	return o.Payload
}
func (o *CreateGroupNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.NotFoundError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}