grafana/pkg/services/dashboardsnapshots/errors.go
Sofia Papagiannaki 5fec6cc4f5
API: Fix snapshot responses (#52998)
* API: Fix response status when snapshots are not found

* API: Fix response status when snapshot key is empty

* Apply suggestions from code review
2022-08-03 10:31:23 -04:00

8 lines
230 B
Go

package dashboardsnapshots
import (
"github.com/grafana/grafana/pkg/util/errutil"
)
var ErrBaseNotFound = errutil.NewBase(errutil.StatusNotFound, "dashboardsnapshots.not-found", errutil.WithPublicMessage("Snapshot not found"))