github.com/circl-dev/go-swagger@v0.31.0/examples/generated/restapi/operations/store/delete_order_responses.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  package store
     4  
     5  // This file was generated by the swagger tool.
     6  // Editing this file might prove futile when you re-run the swagger generate command
     7  
     8  import (
     9  	"net/http"
    10  
    11  	"github.com/circl-dev/runtime"
    12  )
    13  
    14  // DeleteOrderBadRequestCode is the HTTP code returned for type DeleteOrderBadRequest
    15  const DeleteOrderBadRequestCode int = 400
    16  
    17  /*DeleteOrderBadRequest Invalid ID supplied
    18  
    19  swagger:response deleteOrderBadRequest
    20  */
    21  type DeleteOrderBadRequest struct {
    22  }
    23  
    24  // NewDeleteOrderBadRequest creates DeleteOrderBadRequest with default headers values
    25  func NewDeleteOrderBadRequest() *DeleteOrderBadRequest {
    26  
    27  	return &DeleteOrderBadRequest{}
    28  }
    29  
    30  // WriteResponse to the client
    31  func (o *DeleteOrderBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
    32  
    33  	rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
    34  
    35  	rw.WriteHeader(400)
    36  }
    37  
    38  // DeleteOrderNotFoundCode is the HTTP code returned for type DeleteOrderNotFound
    39  const DeleteOrderNotFoundCode int = 404
    40  
    41  /*DeleteOrderNotFound Order not found
    42  
    43  swagger:response deleteOrderNotFound
    44  */
    45  type DeleteOrderNotFound struct {
    46  }
    47  
    48  // NewDeleteOrderNotFound creates DeleteOrderNotFound with default headers values
    49  func NewDeleteOrderNotFound() *DeleteOrderNotFound {
    50  
    51  	return &DeleteOrderNotFound{}
    52  }
    53  
    54  // WriteResponse to the client
    55  func (o *DeleteOrderNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
    56  
    57  	rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
    58  
    59  	rw.WriteHeader(404)
    60  }