databricks-cli/acceptance/workspace/jobs/create-error
shreyas-goenka d86ad91899
Allow test servers to return errors responses (#2291)
## Changes
The APIs at Databricks when returning a non `200` status code will
return a response body of the format:
```
{
  "error_code": "Error code",
  "message": "Human-readable error message."
}
```

This PR adds the ability to stub non-200 status codes in the test
server, allowing us to mock API errors from Databricks.
## Tests
New test
2025-02-04 17:38:11 +01:00
..
out.requests.txt Allow test servers to return errors responses (#2291) 2025-02-04 17:38:11 +01:00
output.txt Allow test servers to return errors responses (#2291) 2025-02-04 17:38:11 +01:00
script Allow test servers to return errors responses (#2291) 2025-02-04 17:38:11 +01:00
test.toml Allow test servers to return errors responses (#2291) 2025-02-04 17:38:11 +01:00