{"modulePath":"github.com/hyperhq/hyper","version":"v1.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Variables\n\n```go\nvar (\n\tErrorCodeCommon = errcode.Register(errGroup, errcode.ErrorDescriptor{\n\t\tValue:          \"COMMONERROR\",\n\t\tMessage:        \"%v\",\n\t\tHTTPStatusCode: http.StatusInternalServerError,\n\t})\n\n\tErrPodNotFound = errcode.Register(errGroup, errcode.ErrorDescriptor{\n\t\tValue:          \"HYPER_POD_NOT_FOUND\",\n\t\tMessage:        \"Pod %s not found\",\n\t\tHTTPStatusCode: http.StatusNotFound,\n\t})\n\n\tErrBadJsonFormat = errcode.Register(errGroup, errcode.ErrorDescriptor{\n\t\tValue:          \"HYPER_BAD_JSON_FORMAT\",\n\t\tMessage:        \"failed to parse json: %v\",\n\t\tHTTPStatusCode: http.StatusBadRequest,\n\t})\n\n\tErrSandboxNotExist = errcode.Register(errGroup, errcode.ErrorDescriptor{\n\t\tValue:          \"HYPER_SANDBOX_NOT_EXIST\",\n\t\tMessage:        \"sandbox does not exist\",\n\t\tHTTPStatusCode: http.StatusPreconditionFailed,\n\t})\n\n\tErrPodNotAlive = errcode.Register(errGroup, errcode.ErrorDescriptor{\n\t\tValue:          \"HYPER_POD_NOT_ALIVE\",\n\t\tMessage:        \"cannot complete the operation, because the pod %s is not alive\",\n\t\tHTTPStatusCode: http.StatusPreconditionFailed,\n\t})\n\n\tErrPodNotRunning = errcode.Register(errGroup, errcode.ErrorDescriptor{\n\t\tValue:          \"HYPER_POD_NOT_RUNNING\",\n\t\tMessage:        \"cannot complete the operation, because the pod %s is not running\",\n\t\tHTTPStatusCode: http.StatusPreconditionFailed,\n\t})\n\n\tErrContainerAlreadyRunning = errcode.Register(errGroup, errcode.ErrorDescriptor{\n\t\tValue:          \"HYPER_CONTAINER_RUNNING\",\n\t\tMessage:        \"container %s is in running state\",\n\t\tHTTPStatusCode: http.StatusPreconditionFailed,\n\t})\n)\n```\n\n","path":"github.com/hyperhq/hyper/errors","name":"errors","synopsis":"","isRedistributable":true}
