github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/api/plugin/pluginerror/raw_http_status_error.go (about)

     1  package pluginerror
     2  
     3  import "fmt"
     4  
     5  // RawHTTPStatusError represents any response with a 4xx or 5xx status code.
     6  type RawHTTPStatusError struct {
     7  	Status      string
     8  	RawResponse []byte
     9  }
    10  
    11  func (r RawHTTPStatusError) Error() string {
    12  	return fmt.Sprintf("HTTP Response: %s\nHTTP Response Body: %s", r.Status, r.RawResponse)
    13  }