func NewListNotificationsUnauthorized() *ListNotificationsUnauthorized {
	return &ListNotificationsUnauthorized{}
}
NewListNotificationsUnauthorized creates a ListNotificationsUnauthorized with default headers values
package notifications
import (
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/fugue/fugue-client/models"
)
type ListNotificationsReader struct {
	formats strfmt.Registry
}
func (o *ListNotificationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewListNotificationsOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewListNotificationsBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewListNotificationsUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewListNotificationsForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewListNotificationsInternalServerError()
		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 NewListNotificationsOK() *ListNotificationsOK {
	return &ListNotificationsOK{}
}
type ListNotificationsOK struct {
	Payload *models.Notifications
}
func (o *ListNotificationsOK) Error() string {
	return fmt.Sprintf("[GET /notifications][%d] listNotificationsOK  %+v", 200, o.Payload)
}
func (o *ListNotificationsOK) GetPayload() *models.Notifications {
	return o.Payload
}
func (o *ListNotificationsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.Notifications)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewListNotificationsBadRequest() *ListNotificationsBadRequest {
	return &ListNotificationsBadRequest{}
}
type ListNotificationsBadRequest struct {
	Payload *models.BadRequestError
}
func (o *ListNotificationsBadRequest) Error() string {
	return fmt.Sprintf("[GET /notifications][%d] listNotificationsBadRequest  %+v", 400, o.Payload)
}
func (o *ListNotificationsBadRequest) GetPayload() *models.BadRequestError {
	return o.Payload
}
func (o *ListNotificationsBadRequest) 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
}