package database

import (
	"github.com/juju/errors"
)

var (
	// ErrNoSuchEntity is returned from a Get operation when there is not a model
	// that matches the query
	ErrNoSuchEntity = errors.New("no such entity found in database")
)

package database

import (
	"github.com/juju/errors"
)

var (
	// ErrNoSuchEntity is returned from a Get operation when there is not a model
	// that matches the query
	ErrNoSuchEntity = errors.NotFoundf("no such entity found in database")
)

Revert "Do not use the NotFound error type because it triggers a 404 error page in the servers; use a default error type."
Revert "Do not use the NotFound error type because it triggers a 404 error page in the servers; use a default error type."

This reverts commit d5fd44bf655d44cad9e82e9e78f45c9c226cce96.
