diff --git a/stackit/internal/services/postgresflexalpha/database/datasource.go b/stackit/internal/services/postgresflexalpha/database/datasource.go index d6890954..45bd305c 100644 --- a/stackit/internal/services/postgresflexalpha/database/datasource.go +++ b/stackit/internal/services/postgresflexalpha/database/datasource.go @@ -166,7 +166,16 @@ func handleReadError(ctx context.Context, diags *diag.Diagnostics, err error, pr projectId, ), map[int]string{ - http.StatusNotFound: fmt.Sprintf("Database, instance %q, or project %q not found.", instanceId, projectId), + http.StatusBadRequest: fmt.Sprintf( + "Invalid request parameters for project %q and instance %q.", + projectId, + instanceId, + ), + http.StatusNotFound: fmt.Sprintf( + "Database, instance %q, or project %q not found.", + instanceId, + projectId, + ), http.StatusForbidden: fmt.Sprintf("Forbidden access to project %q.", projectId), }, )