(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
| 37 | } |
| 38 | |
| 39 | func BuildErrorResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { |
| 40 | result := &ErrorResponse{ |
| 41 | Code: response.Code(), |
| 42 | Status: response.Message(), // this isn't the body! |
| 43 | } |
| 44 | if err := result.readResponse(response, consumer, formats); err != nil { |
| 45 | return err |
| 46 | } |
| 47 | return result |
| 48 | } |
| 49 | |
| 50 | // ErrorResponse handles error cases |
| 51 | type ErrorResponse struct { |
no test coverage detected