# deploy_failed

HTTP 422 · Deploys and migrations (SPEC §6.2, §10, §15.2)

The deploy failed, so the previous version is still live. See details for the reason, fix it and deploy again.

## Does retrying help?

Not as it is. Change the request as the message says, then send it again.

## The response

Every Flatstack error has this shape. `details`, when present, says more about this case.

```json
{
  "error": {
    "code": "deploy_failed",
    "message": "The deploy failed, so the previous version is still live. See details for the reason, fix it and deploy again.",
    "docsUrl": "https://flatstack.dev/docs/errors/deploy_failed"
  }
}
```

[All error codes](/docs/errors)