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

package kibana_oapi 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), ), } }