diff --git a/lxd/response/smart.go b/lxd/response/smart.go index 554d08bd45de..3e6cbd0c2f14 100644 --- a/lxd/response/smart.go +++ b/lxd/response/smart.go @@ -6,14 +6,12 @@ import ( "net/http" "os" - "github.com/canonical/lxd/lxd/db" "github.com/canonical/lxd/shared/api" ) var httpResponseErrors = map[int][]error{ http.StatusNotFound: {os.ErrNotExist, sql.ErrNoRows}, http.StatusForbidden: {os.ErrPermission}, - http.StatusConflict: {db.ErrAlreadyDefined}, } // SmartError returns the right error message based on err.