internal/clients/fleet/errors.go (13 lines of code) (raw):

package fleet import ( "fmt" "github.com/hashicorp/terraform-plugin-framework/diag" ) func reportUnknownError(statusCode int, body []byte) diag.Diagnostics { return diag.Diagnostics{ diag.NewErrorDiagnostic( fmt.Sprintf("Unexpected status code from server: got HTTP %d", statusCode), string(body), ), } }