Skip to content

immutable_field

Error codeView as Markdown

This field cannot be changed after creation. Some settings are fixed once a resource exists, for example a database engine. Changing them in place would risk your data.

  • HTTP status: 422 Unprocessable Content
  • CLI exit code: 2 (the request or file is not valid)
  • Retry: not as it is; the same request will fail the same way until the cause is fixed

Create a new {resource_type} instead.

Words in {braces} are filled in from the error response, which names the exact resource.

{
"type": "https://guv.dev/errors/immutable_field",
"title": "This field cannot be changed after creation",
"status": 422,
"code": "immutable_field",
"detail": "Some settings are fixed once a resource exists, for example a database engine.",
"fix": "Create a new {resource_type} instead.",
"docs_url": "https://guv.dev/errors/immutable_field",
"request_id": "req_01jbx2m9k7q4r8t5v6w3y0z1rq"
}

The code field is stable: match on it, not on title or detail, which may be reworded.