github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/api/cloudcontroller/ccerror/raw_http_status_error.go (about) 1 package ccerror 2 3 import "fmt" 4 5 // RawHTTPStatusError represents any response with a 4xx or 5xx status code. 6 type RawHTTPStatusError struct { 7 StatusCode int 8 RawResponse []byte 9 RequestIDs []string 10 } 11 12 func (r RawHTTPStatusError) Error() string { 13 return fmt.Sprintf("Error Code: %d\nRaw Response: %s", r.StatusCode, r.RawResponse) 14 }