package stacks import "errors" // R-553 — the deploy path's refusals carry a KIND, so the API can pick its status code without // reading the customer's Hungarian sentence. The sentences themselves are unchanged (a test pins // each one byte-for-byte); `internal/util.KindErrorf` builds the message exactly as fmt.Errorf did. // // Before this, internal/api/router.go matched „kötelező", „memória", "does not exist" and // "already deployed" in the error text — so localisation slice 2 would have turned every validation // refusal into a 500. var ( // ErrAlreadyDeployed — the stack is already deployed (API: 409). ErrAlreadyDeployed = errors.New("stack already deployed") // ErrRequiredField — a required (or password) field was left empty (API: 400). ErrRequiredField = errors.New("required field empty") // ErrPathMissing — a path field names something that is not on the filesystem (API: 400). ErrPathMissing = errors.New("path field does not exist") // ErrNotEnoughMemory — the memory verdict refused the deploy (API: 400). ErrNotEnoughMemory = errors.New("not enough memory") )