func NewListAuditLogEventsUnauthorized() *ListAuditLogEventsUnauthorized {
	return &ListAuditLogEventsUnauthorized{}
}
NewListAuditLogEventsUnauthorized creates a ListAuditLogEventsUnauthorized with default headers values
package audit_log
import (
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/fugue/fugue-client/models"
)
type ListAuditLogEventsReader struct {
	formats strfmt.Registry
}
func (o *ListAuditLogEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewListAuditLogEventsOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewListAuditLogEventsBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewListAuditLogEventsUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewListAuditLogEventsForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewListAuditLogEventsInternalServerError()
		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 NewListAuditLogEventsOK() *ListAuditLogEventsOK {
	return &ListAuditLogEventsOK{}
}
type ListAuditLogEventsOK struct {
	Payload *models.AuditLogEvents
}
func (o *ListAuditLogEventsOK) Error() string {
	return fmt.Sprintf("[GET /audit_log/events][%d] listAuditLogEventsOK  %+v", 200, o.Payload)
}
func (o *ListAuditLogEventsOK) GetPayload() *models.AuditLogEvents {
	return o.Payload
}
func (o *ListAuditLogEventsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.AuditLogEvents)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewListAuditLogEventsBadRequest() *ListAuditLogEventsBadRequest {
	return &ListAuditLogEventsBadRequest{}
}
type ListAuditLogEventsBadRequest struct {
	Payload *models.BadRequestError
}
func (o *ListAuditLogEventsBadRequest) Error() string {
	return fmt.Sprintf("[GET /audit_log/events][%d] listAuditLogEventsBadRequest  %+v", 400, o.Payload)
}
func (o *ListAuditLogEventsBadRequest) GetPayload() *models.BadRequestError {
	return o.Payload
}
func (o *ListAuditLogEventsBadRequest) 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
}