func NewDeleteMessageUnauthorized() *DeleteMessageUnauthorized {
	return &DeleteMessageUnauthorized{}
}
NewDeleteMessageUnauthorized creates a DeleteMessageUnauthorized with default headers values
package message
import (
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	strfmt "github.com/go-openapi/strfmt"
	models "github.com/gotify/go-api-client/v2/models"
)
type DeleteMessageReader struct {
	formats strfmt.Registry
}
func (o *DeleteMessageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewDeleteMessageOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewDeleteMessageBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewDeleteMessageUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewDeleteMessageForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewDeleteMessageNotFound()
		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 NewDeleteMessageOK() *DeleteMessageOK {
	return &DeleteMessageOK{}
}
type DeleteMessageOK struct {
}
func (o *DeleteMessageOK) Error() string {
	return fmt.Sprintf("[DELETE /message/{id}][%d] deleteMessageOK ", 200)
}
func (o *DeleteMessageOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewDeleteMessageBadRequest() *DeleteMessageBadRequest {
	return &DeleteMessageBadRequest{}
}
type DeleteMessageBadRequest struct {
	Payload *models.Error
}
func (o *DeleteMessageBadRequest) Error() string {
	return fmt.Sprintf("[DELETE /message/{id}][%d] deleteMessageBadRequest  %+v", 400, o.Payload)
}
func (o *DeleteMessageBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.Error)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}