# bad_environment

URL: /evidence/errors/bad_environment · Id: `error:bad_environment`

> The call asked a test or dev Key to act on live records.

The `bad_environment` [Problem](/evidence/errors) means: the call asked a test or dev [Key](/callers/keys) to act on live records.

## Answer
| Status | Title |
| --- | --- |
| 400 | Bad Request |

```json
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "detail": "What went wrong, in words.",
  "code": "bad_environment"
}
```

## Fix
Call with a live Key for live records, or keep the call in its own environment.