# Errors

> How the API reports errors, what each field means, and every error code.

Source: https://legion.ambient.xyz/docs/errors

Errors use [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem details, with the content type `application/problem+json`.

## An example

A request with a cursor the API didn't issue gets status `400`, an `X-Request-Id` header, and this body (abridged):

```json
{
  "status": 400,
  "code": "invalid_cursor",
  "title": "Bad Request",
  "detail": "The cursor is not one this API returned.",
  "instance": "/v1/rentals"
}
```

## The fields

| Field | What it is |
| --- | --- |
| `code` | A stable, machine-readable code. Branch on this. |
| `status` | The HTTP status. |
| `title` | A short summary for people. It can change. |
| `detail` | An explanation for people. It can change. |
| `type` | A URI for the code. |
| `instance` | The request path. |
| `resource_id` | The resource a conflict refers to, when there is one. |

Some problems carry more. For example, `403 terms_not_accepted` includes `legal`, the documents to accept.

## Handle errors

- Branch on `code`, never on `title` or `detail`.
- Treat a code you don't know by its HTTP status.
- On `429`, wait for `Retry-After` seconds. See [Rate limits](https://legion.ambient.xyz/docs/api/rate-limits).
- On a `5xx`, retry with backoff. For operations that take an `Idempotency-Key`, retry with the same key. See [Idempotency](https://legion.ambient.xyz/docs/api/idempotency).
- Log the `X-Request-Id` header, and quote it when you contact [support](https://legion.ambient.xyz/docs/account/support).

A resource that belongs to another organization answers `404 not_found`, the same as one that doesn't exist.

## Codes

| Code | Status | Returned by |
| --- | --- | --- |
| [`auto_backup_not_applicable`](https://legion.ambient.xyz/docs/errors#auto_backup_not_applicable) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`auto_pricing_on`](https://legion.ambient.xyz/docs/errors#auto_pricing_on) | `400` | [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`auto_resume_not_applicable`](https://legion.ambient.xyz/docs/errors#auto_resume_not_applicable) | `400` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`bid_not_applicable`](https://legion.ambient.xyz/docs/errors#bid_not_applicable) | `400` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`confirmation_mismatch`](https://legion.ambient.xyz/docs/errors#confirmation_mismatch) | `400` | [Remove a host](https://legion.ambient.xyz/docs/api/hosts/remove-host) |
| [`denied_range`](https://legion.ambient.xyz/docs/errors#denied_range) | `400` | [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request) |
| [`env_reserved`](https://legion.ambient.xyz/docs/errors#env_reserved) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Estimate what a service would cost](https://legion.ambient.xyz/docs/api/services/estimate-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`host_visibility_not_acknowledged`](https://legion.ambient.xyz/docs/errors#host_visibility_not_acknowledged) | `400` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service) |
| [`image_outside_prefix`](https://legion.ambient.xyz/docs/errors#image_outside_prefix) | `400` | [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential) |
| [`image_private`](https://legion.ambient.xyz/docs/errors#image_private) | `400, 422` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image) |
| [`image_registry_mismatch`](https://legion.ambient.xyz/docs/errors#image_registry_mismatch) | `400` | [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in) |
| [`interruption_behavior_not_allowed`](https://legion.ambient.xyz/docs/errors#interruption_behavior_not_allowed) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental) |
| [`invalid_cidr`](https://legion.ambient.xyz/docs/errors#invalid_cidr) | `400` | [Set the destinations blocked for rentals on a host](https://legion.ambient.xyz/docs/api/hosts/update-host-network) |
| [`invalid_command`](https://legion.ambient.xyz/docs/errors#invalid_command) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`invalid_country`](https://legion.ambient.xyz/docs/errors#invalid_country) | `400` | [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`invalid_cursor`](https://legion.ambient.xyz/docs/errors#invalid_cursor) | `400` | [List the organization's rentals](https://legion.ambient.xyz/docs/api/rentals/list-rentals), [Read a rental's logs](https://legion.ambient.xyz/docs/api/rentals/get-rental-logs), [A rental's backups, newest first](https://legion.ambient.xyz/docs/api/rentals/list-rental-backups), [The organization's backups, newest first](https://legion.ambient.xyz/docs/api/rentals/list-backups), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs), [List the organization's ledger entries](https://legion.ambient.xyz/docs/api/billing/list-ledger-entries), and 7 more |
| [`invalid_env`](https://legion.ambient.xyz/docs/errors#invalid_env) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Estimate what a service would cost](https://legion.ambient.xyz/docs/api/services/estimate-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`invalid_hardware`](https://legion.ambient.xyz/docs/errors#invalid_hardware) | `400` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Estimate what a service would cost](https://legion.ambient.xyz/docs/api/services/estimate-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`invalid_image_reference`](https://legion.ambient.xyz/docs/errors#invalid_image_reference) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Split an image reference into registry host and path prefix](https://legion.ambient.xyz/docs/api/images/detect-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential) |
| [`invalid_interruptible_price`](https://legion.ambient.xyz/docs/errors#invalid_interruptible_price) | `400` | [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`invalid_label`](https://legion.ambient.xyz/docs/errors#invalid_label) | `400` | [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key) |
| [`invalid_listing`](https://legion.ambient.xyz/docs/errors#invalid_listing) | `400` | [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`invalid_logs_query`](https://legion.ambient.xyz/docs/errors#invalid_logs_query) | `400` | [Read a rental's logs](https://legion.ambient.xyz/docs/api/rentals/get-rental-logs), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs) |
| [`invalid_maintenance_window`](https://legion.ambient.xyz/docs/errors#invalid_maintenance_window) | `400` | [Schedule maintenance on one or many hosts](https://legion.ambient.xyz/docs/api/hosts/schedule-maintenance), [What scheduling maintenance would do](https://legion.ambient.xyz/docs/api/hosts/preview-maintenance), [Move or change scheduled maintenance windows](https://legion.ambient.xyz/docs/api/hosts/reschedule-maintenance) |
| [`invalid_min_price`](https://legion.ambient.xyz/docs/errors#invalid_min_price) | `400` | [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`invalid_model_setting`](https://legion.ambient.xyz/docs/errors#invalid_model_setting) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Estimate what a service would cost](https://legion.ambient.xyz/docs/api/services/estimate-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`invalid_name`](https://legion.ambient.xyz/docs/errors#invalid_name) | `400` | [Rename a host](https://legion.ambient.xyz/docs/api/hosts/rename-host) |
| [`invalid_path_prefix`](https://legion.ambient.xyz/docs/errors#invalid_path_prefix) | `400` | [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential) |
| [`invalid_pattern`](https://legion.ambient.xyz/docs/errors#invalid_pattern) | `400` | [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request) |
| [`invalid_range`](https://legion.ambient.xyz/docs/errors#invalid_range) | `400` | [The organization's earnings over a period, with the previous period](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-overview), [The organization's earnings over time](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-series), [The organization's earnings by one dimension](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-breakdown), [What each of the organization's hosts earned and how it performed](https://legion.ambient.xyz/docs/api/billing/list-provider-earnings-hosts), [One host's earnings, utilization, uptime and price against the market](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-host), [The rentals on the organization's hosts that were billed in a period](https://legion.ambient.xyz/docs/api/billing/list-provider-earnings-rentals), and 6 more |
| [`invalid_registry_credential`](https://legion.ambient.xyz/docs/errors#invalid_registry_credential) | `400` | [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential) |
| [`invalid_request`](https://legion.ambient.xyz/docs/errors#invalid_request) | `400` |  |
| [`invalid_scaling`](https://legion.ambient.xyz/docs/errors#invalid_scaling) | `400` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Estimate what a service would cost](https://legion.ambient.xyz/docs/api/services/estimate-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`invalid_serve`](https://legion.ambient.xyz/docs/errors#invalid_serve) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`invalid_service_name`](https://legion.ambient.xyz/docs/errors#invalid_service_name) | `400` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service) |
| [`invalid_sign_in`](https://legion.ambient.xyz/docs/errors#invalid_sign_in) | `400` | [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in) |
| [`invalid_source`](https://legion.ambient.xyz/docs/errors#invalid_source) | `400` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`invalid_spend_cap`](https://legion.ambient.xyz/docs/errors#invalid_spend_cap) | `400` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`invalid_ssh_key`](https://legion.ambient.xyz/docs/errors#invalid_ssh_key) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key) |
| [`max_above_on_demand`](https://legion.ambient.xyz/docs/errors#max_above_on_demand) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`not_a_member`](https://legion.ambient.xyz/docs/errors#not_a_member) | `400` | [Change whether a notification is emailed, and to whom](https://legion.ambient.xyz/docs/api/notifications/update-notification-setting) |
| [`override_not_allowed`](https://legion.ambient.xyz/docs/errors#override_not_allowed) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`pattern_too_broad`](https://legion.ambient.xyz/docs/errors#pattern_too_broad) | `400` | [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request) |
| [`price_required`](https://legion.ambient.xyz/docs/errors#price_required) | `400` | [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`private_key_refused`](https://legion.ambient.xyz/docs/errors#private_key_refused) | `400` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key) |
| [`registry_sign_in_rejected`](https://legion.ambient.xyz/docs/errors#registry_sign_in_rejected) | `400, 422` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in) |
| [`resume_after_maintenance_not_applicable`](https://legion.ambient.xyz/docs/errors#resume_after_maintenance_not_applicable) | `400` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`selected_members_required`](https://legion.ambient.xyz/docs/errors#selected_members_required) | `400` | [Change whether a notification is emailed, and to whom](https://legion.ambient.xyz/docs/api/notifications/update-notification-setting) |
| [`service_kind_unsupported`](https://legion.ambient.xyz/docs/errors#service_kind_unsupported) | `400` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service) |
| [`unauthorized`](https://legion.ambient.xyz/docs/errors#unauthorized) | `401` |  |
| [`insufficient_credit`](https://legion.ambient.xyz/docs/errors#insufficient_credit) | `402` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Make a single-use download link for a ready workspace export](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export-download-link), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), [Mint a download link for a ready backup](https://legion.ambient.xyz/docs/api/rentals/create-backup-download-link), and 1 more |
| [`access_not_approved`](https://legion.ambient.xyz/docs/errors#access_not_approved) | `403` |  |
| [`account_conflict`](https://legion.ambient.xyz/docs/errors#account_conflict) | `403` |  |
| [`api_key_required`](https://legion.ambient.xyz/docs/errors#api_key_required) | `403` |  |
| [`api_key_scope`](https://legion.ambient.xyz/docs/errors#api_key_scope) | `403` |  |
| [`catalog_entry_disabled`](https://legion.ambient.xyz/docs/errors#catalog_entry_disabled) | `403` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental) |
| [`custom_images_disabled`](https://legion.ambient.xyz/docs/errors#custom_images_disabled) | `403` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`domain_not_allowed`](https://legion.ambient.xyz/docs/errors#domain_not_allowed) | `403` |  |
| [`email_unverified`](https://legion.ambient.xyz/docs/errors#email_unverified) | `403` |  |
| [`forbidden`](https://legion.ambient.xyz/docs/errors#forbidden) | `403` |  |
| [`no_organization`](https://legion.ambient.xyz/docs/errors#no_organization) | `403` | [Search GPU offers](https://legion.ambient.xyz/docs/api/offers/list-offers), [Get one offer with its score breakdown and uptime history](https://legion.ambient.xyz/docs/api/offers/get-offer), [List the caller's offer alerts](https://legion.ambient.xyz/docs/api/offers/list-offer-alerts), [Be emailed once when a matching machine is available](https://legion.ambient.xyz/docs/api/offers/create-offer-alert), [Get one offer alert](https://legion.ambient.xyz/docs/api/offers/get-offer-alert), [Rename, re-arm or change the expiry of an offer alert](https://legion.ambient.xyz/docs/api/offers/update-offer-alert), and 140 more |
| [`not_a_provider`](https://legion.ambient.xyz/docs/errors#not_a_provider) | `403` | [Get the organization's payout setup](https://legion.ambient.xyz/docs/api/billing/get-payout-status) |
| [`oauth_token_mcp_only`](https://legion.ambient.xyz/docs/errors#oauth_token_mcp_only) | `403` |  |
| [`org_suspended`](https://legion.ambient.xyz/docs/errors#org_suspended) | `403` |  |
| [`owner_required`](https://legion.ambient.xyz/docs/errors#owner_required) | `403` | [Change whether a notification is emailed, and to whom](https://legion.ambient.xyz/docs/api/notifications/update-notification-setting) |
| [`promo_code_not_eligible`](https://legion.ambient.xyz/docs/errors#promo_code_not_eligible) | `403` | [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code) |
| [`requests_disabled`](https://legion.ambient.xyz/docs/errors#requests_disabled) | `403` | [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request) |
| [`service_unavailable`](https://legion.ambient.xyz/docs/errors#service_unavailable) | `403` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service) |
| [`session_required`](https://legion.ambient.xyz/docs/errors#session_required) | `403` |  |
| [`step_up_required`](https://legion.ambient.xyz/docs/errors#step_up_required) | `403` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Delete a service](https://legion.ambient.xyz/docs/api/services/delete-service), [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), [Rotate a service key](https://legion.ambient.xyz/docs/api/services/rotate-service-key) |
| [`terminal_access_forbidden`](https://legion.ambient.xyz/docs/errors#terminal_access_forbidden) | `403` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`terms_not_accepted`](https://legion.ambient.xyz/docs/errors#terms_not_accepted) | `403` |  |
| [`web_app_required`](https://legion.ambient.xyz/docs/errors#web_app_required) | `403` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Delete a service](https://legion.ambient.xyz/docs/api/services/delete-service), [Pause a service](https://legion.ambient.xyz/docs/api/services/pause-service), [Resume a paused service](https://legion.ambient.xyz/docs/api/services/resume-service), [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), and 2 more |
| [`host_not_offered`](https://legion.ambient.xyz/docs/errors#host_not_offered) | `404` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental) |
| [`not_found`](https://legion.ambient.xyz/docs/errors#not_found) | `404` |  |
| [`promo_code_not_found`](https://legion.ambient.xyz/docs/errors#promo_code_not_found) | `404` | [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code) |
| [`replica_not_found`](https://legion.ambient.xyz/docs/errors#replica_not_found) | `404` | [A service's inference metrics](https://legion.ambient.xyz/docs/api/services/get-service-metrics), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs) |
| [`serve_not_configured`](https://legion.ambient.xyz/docs/errors#serve_not_configured) | `404` | [How to reach the model a rental serves](https://legion.ambient.xyz/docs/api/rentals/get-rental-serve), [Create the rental's model service if it has none](https://legion.ambient.xyz/docs/api/rentals/expose-rental-serve) |
| [`method_not_allowed`](https://legion.ambient.xyz/docs/errors#method_not_allowed) | `405` | [What GPUs can be rented now, and from what price (public)](https://legion.ambient.xyz/docs/api/public/get-public-market) |
| [`alert_limit_reached`](https://legion.ambient.xyz/docs/errors#alert_limit_reached) | `409` | [Be emailed once when a matching machine is available](https://legion.ambient.xyz/docs/api/offers/create-offer-alert), [Rename, re-arm or change the expiry of an offer alert](https://legion.ambient.xyz/docs/api/offers/update-offer-alert) |
| [`alert_not_active`](https://legion.ambient.xyz/docs/errors#alert_not_active) | `409` | [Rename, re-arm or change the expiry of an offer alert](https://legion.ambient.xyz/docs/api/offers/update-offer-alert) |
| [`already_member`](https://legion.ambient.xyz/docs/errors#already_member) | `409` | [Invite a person to the organization](https://legion.ambient.xyz/docs/api/identity/create-invitation), [Email an invitation again](https://legion.ambient.xyz/docs/api/identity/resend-invitation) |
| [`auto_pricing_disabled`](https://legion.ambient.xyz/docs/errors#auto_pricing_disabled) | `409` | [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`backup_in_progress`](https://legion.ambient.xyz/docs/errors#backup_in_progress) | `409` | [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup) |
| [`backup_not_cancellable`](https://legion.ambient.xyz/docs/errors#backup_not_cancellable) | `409` | [Cancel a queued or uploading backup](https://legion.ambient.xyz/docs/api/rentals/cancel-backup) |
| [`backup_not_ready`](https://legion.ambient.xyz/docs/errors#backup_not_ready) | `409` | [Delete a ready backup early](https://legion.ambient.xyz/docs/api/rentals/delete-backup), [Mint a download link for a ready backup](https://legion.ambient.xyz/docs/api/rentals/create-backup-download-link) |
| [`backup_too_slow`](https://legion.ambient.xyz/docs/errors#backup_too_slow) | `409` | [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup) |
| [`bid_below_floor`](https://legion.ambient.xyz/docs/errors#bid_below_floor) | `409` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`bid_cancelled`](https://legion.ambient.xyz/docs/errors#bid_cancelled) | `409` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`bid_too_low`](https://legion.ambient.xyz/docs/errors#bid_too_low) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`catalog_entry_incompatible`](https://legion.ambient.xyz/docs/errors#catalog_entry_incompatible) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental) |
| [`egress_already_allowed`](https://legion.ambient.xyz/docs/errors#egress_already_allowed) | `409` | [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request) |
| [`egress_mode_set_by_admin`](https://legion.ambient.xyz/docs/errors#egress_mode_set_by_admin) | `409` | [Hold the organization's new rentals to the allow-list](https://legion.ambient.xyz/docs/api/network/update-org-egress-mode) |
| [`egress_request_exists`](https://legion.ambient.xyz/docs/errors#egress_request_exists) | `409` | [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request) |
| [`egress_request_not_pending`](https://legion.ambient.xyz/docs/errors#egress_request_not_pending) | `409` | [Withdraw a pending egress request](https://legion.ambient.xyz/docs/api/network/withdraw-egress-request) |
| [`enforce_unavailable`](https://legion.ambient.xyz/docs/errors#enforce_unavailable) | `409` | [Hold the organization's new rentals to the allow-list](https://legion.ambient.xyz/docs/api/network/update-org-egress-mode), [Set the destinations blocked for rentals on a host](https://legion.ambient.xyz/docs/api/hosts/update-host-network) |
| [`exceeds_refundable`](https://legion.ambient.xyz/docs/errors#exceeds_refundable) | `409` | [See how much unused credit can be refunded, and the fee kept](https://legion.ambient.xyz/docs/api/billing/get-credit-refund-quote), [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund) |
| [`export_in_progress`](https://legion.ambient.xyz/docs/errors#export_in_progress) | `409` | [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup) |
| [`export_not_cancellable`](https://legion.ambient.xyz/docs/errors#export_not_cancellable) | `409` | [Cancel a pending workspace export](https://legion.ambient.xyz/docs/api/rentals/cancel-workspace-export) |
| [`export_not_ready`](https://legion.ambient.xyz/docs/errors#export_not_ready) | `409` | [Make a single-use download link for a ready workspace export](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export-download-link) |
| [`floor_cooldown`](https://legion.ambient.xyz/docs/errors#floor_cooldown) | `409` | [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`gpus_unavailable`](https://legion.ambient.xyz/docs/errors#gpus_unavailable) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental) |
| [`host_disk_full`](https://legion.ambient.xyz/docs/errors#host_disk_full) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental) |
| [`host_has_active_rentals`](https://legion.ambient.xyz/docs/errors#host_has_active_rentals) | `409` | [Remove a host](https://legion.ambient.xyz/docs/api/hosts/remove-host) |
| [`host_has_stored_data`](https://legion.ambient.xyz/docs/errors#host_has_stored_data) | `409` | [Remove a host](https://legion.ambient.xyz/docs/api/hosts/remove-host) |
| [`host_maintenance`](https://legion.ambient.xyz/docs/errors#host_maintenance) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental) |
| [`host_offline`](https://legion.ambient.xyz/docs/errors#host_offline) | `409` | [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup) |
| [`host_removed`](https://legion.ambient.xyz/docs/errors#host_removed) | `409` | [Rename a host](https://legion.ambient.xyz/docs/api/hosts/rename-host), [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`host_removing`](https://legion.ambient.xyz/docs/errors#host_removing) | `409` | [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`host_start_hold`](https://legion.ambient.xyz/docs/errors#host_start_hold) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental) |
| [`host_unavailable`](https://legion.ambient.xyz/docs/errors#host_unavailable) | `409` | [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental) |
| [`host_unsupported`](https://legion.ambient.xyz/docs/errors#host_unsupported) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), and 1 more |
| [`interruptible_has_bids`](https://legion.ambient.xyz/docs/errors#interruptible_has_bids) | `409` | [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`invalid_mode_switch`](https://legion.ambient.xyz/docs/errors#invalid_mode_switch) | `409` | [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`invitation_exists`](https://legion.ambient.xyz/docs/errors#invitation_exists) | `409` | [Invite a person to the organization](https://legion.ambient.xyz/docs/api/identity/create-invitation) |
| [`invitation_not_pending`](https://legion.ambient.xyz/docs/errors#invitation_not_pending) | `409` | [Email an invitation again](https://legion.ambient.xyz/docs/api/identity/resend-invitation) |
| [`key_revoked`](https://legion.ambient.xyz/docs/errors#key_revoked) | `409` | [Rotate a service key](https://legion.ambient.xyz/docs/api/services/rotate-service-key) |
| [`linked_host`](https://legion.ambient.xyz/docs/errors#linked_host) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental) |
| [`model_settings_do_not_fit`](https://legion.ambient.xyz/docs/errors#model_settings_do_not_fit) | `409` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`model_settings_unavailable`](https://legion.ambient.xyz/docs/errors#model_settings_unavailable) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`name_taken`](https://legion.ambient.xyz/docs/errors#name_taken) | `409` | [Rename a host](https://legion.ambient.xyz/docs/api/hosts/rename-host) |
| [`no_matching_offers`](https://legion.ambient.xyz/docs/errors#no_matching_offers) | `409` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service) |
| [`no_recommendation`](https://legion.ambient.xyz/docs/errors#no_recommendation) | `409` | [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing) |
| [`no_saved_card`](https://legion.ambient.xyz/docs/errors#no_saved_card) | `409` | [Turn auto top-up on or off and set its amounts](https://legion.ambient.xyz/docs/api/billing/put-auto-top-up) |
| [`notice_open`](https://legion.ambient.xyz/docs/errors#notice_open) | `409` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`own_host`](https://legion.ambient.xyz/docs/errors#own_host) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental) |
| [`price_changed`](https://legion.ambient.xyz/docs/errors#price_changed) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental) |
| [`promo_budget_reached`](https://legion.ambient.xyz/docs/errors#promo_budget_reached) | `409` | [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code) |
| [`promo_code_already_redeemed`](https://legion.ambient.xyz/docs/errors#promo_code_already_redeemed) | `409` | [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code) |
| [`promo_code_expired`](https://legion.ambient.xyz/docs/errors#promo_code_expired) | `409` | [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code) |
| [`promo_code_not_started`](https://legion.ambient.xyz/docs/errors#promo_code_not_started) | `409` | [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code) |
| [`promo_code_used_up`](https://legion.ambient.xyz/docs/errors#promo_code_used_up) | `409` | [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code) |
| [`promo_code_wrong_kind`](https://legion.ambient.xyz/docs/errors#promo_code_wrong_kind) | `409` | [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code) |
| [`promotions_paused`](https://legion.ambient.xyz/docs/errors#promotions_paused) | `409` | [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code) |
| [`refund_quote_changed`](https://legion.ambient.xyz/docs/errors#refund_quote_changed) | `409` | [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund) |
| [`registry_credential_exists`](https://legion.ambient.xyz/docs/errors#registry_credential_exists) | `409` | [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential) |
| [`registry_credential_in_use`](https://legion.ambient.xyz/docs/errors#registry_credential_in_use) | `409` | [Remove the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/delete-registry-sign-in), [Remove a registry credential](https://legion.ambient.xyz/docs/api/images/delete-registry-credential) |
| [`registry_credential_limit`](https://legion.ambient.xyz/docs/errors#registry_credential_limit) | `409` | [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential) |
| [`registry_sign_in_in_use`](https://legion.ambient.xyz/docs/errors#registry_sign_in_in_use) | `409` | [Remove the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/delete-registry-sign-in) |
| [`rental_deleted`](https://legion.ambient.xyz/docs/errors#rental_deleted) | `409` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`rental_deleting`](https://legion.ambient.xyz/docs/errors#rental_deleting) | `409` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`rental_failed`](https://legion.ambient.xyz/docs/errors#rental_failed) | `409` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`rental_held`](https://legion.ambient.xyz/docs/errors#rental_held) | `409` | [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup) |
| [`rental_managed_by_service`](https://legion.ambient.xyz/docs/errors#rental_managed_by_service) | `409` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [How to reach the model a rental serves](https://legion.ambient.xyz/docs/api/rentals/get-rental-serve), [Create the rental's model service if it has none](https://legion.ambient.xyz/docs/api/rentals/expose-rental-serve), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental), and 2 more |
| [`rental_not_live`](https://legion.ambient.xyz/docs/errors#rental_not_live) | `409` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request) |
| [`rental_not_stopped`](https://legion.ambient.xyz/docs/errors#rental_not_stopped) | `409` | [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup) |
| [`rental_unnamed`](https://legion.ambient.xyz/docs/errors#rental_unnamed) | `409` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service) |
| [`rentals_running`](https://legion.ambient.xyz/docs/errors#rentals_running) | `409` | [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund) |
| [`replica_limit_exceeded`](https://legion.ambient.xyz/docs/errors#replica_limit_exceeded) | `409` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`revision_mismatch`](https://legion.ambient.xyz/docs/errors#revision_mismatch) | `409` | [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |
| [`rule_exists`](https://legion.ambient.xyz/docs/errors#rule_exists) | `409` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service) |
| [`service_capped`](https://legion.ambient.xyz/docs/errors#service_capped) | `409` | [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Resume a paused service](https://legion.ambient.xyz/docs/api/services/resume-service) |
| [`service_deleting`](https://legion.ambient.xyz/docs/errors#service_deleting) | `409` | [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Pause a service](https://legion.ambient.xyz/docs/api/services/pause-service), [Resume a paused service](https://legion.ambient.xyz/docs/api/services/resume-service), [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), [Rotate a service key](https://legion.ambient.xyz/docs/api/services/rotate-service-key) |
| [`service_disabled`](https://legion.ambient.xyz/docs/errors#service_disabled) | `409` | [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Resume a paused service](https://legion.ambient.xyz/docs/api/services/resume-service) |
| [`service_name_taken`](https://legion.ambient.xyz/docs/errors#service_name_taken) | `409` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service) |
| [`service_not_autoscaled`](https://legion.ambient.xyz/docs/errors#service_not_autoscaled) | `409` | [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Pause a service](https://legion.ambient.xyz/docs/api/services/pause-service), [Resume a paused service](https://legion.ambient.xyz/docs/api/services/resume-service) |
| [`ssh_key_exists`](https://legion.ambient.xyz/docs/errors#ssh_key_exists) | `409` | [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key) |
| [`ssh_key_limit`](https://legion.ambient.xyz/docs/errors#ssh_key_limit) | `409` | [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key) |
| [`test_org_live_payment`](https://legion.ambient.xyz/docs/errors#test_org_live_payment) | `409` | [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Turn auto top-up on or off and set its amounts](https://legion.ambient.xyz/docs/api/billing/put-auto-top-up), [Save or replace the card auto top-up charges](https://legion.ambient.xyz/docs/api/billing/create-auto-top-up-card) |
| [`test_org_no_refunds`](https://legion.ambient.xyz/docs/errors#test_org_no_refunds) | `409` | [See how much unused credit can be refunded, and the fee kept](https://legion.ambient.xyz/docs/api/billing/get-credit-refund-quote), [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund) |
| [`tier_unavailable`](https://legion.ambient.xyz/docs/errors#tier_unavailable) | `409` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental) |
| [`too_many_keys`](https://legion.ambient.xyz/docs/errors#too_many_keys) | `409` | [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), [Rotate a service key](https://legion.ambient.xyz/docs/api/services/rotate-service-key) |
| [`too_many_rules`](https://legion.ambient.xyz/docs/errors#too_many_rules) | `409` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service) |
| [`too_many_services`](https://legion.ambient.xyz/docs/errors#too_many_services) | `409` | [Create a service](https://legion.ambient.xyz/docs/api/services/create-service) |
| [`link_used`](https://legion.ambient.xyz/docs/errors#link_used) | `410` | [Make a single-use download link for a ready workspace export](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export-download-link), [Mint a download link for a ready backup](https://legion.ambient.xyz/docs/api/rentals/create-backup-download-link) |
| [`request_too_large`](https://legion.ambient.xyz/docs/errors#request_too_large) | `413` |  |
| [`idempotency_key_reused`](https://legion.ambient.xyz/docs/errors#idempotency_key_reused) | `422` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Turn auto top-up on or off and set its amounts](https://legion.ambient.xyz/docs/api/billing/put-auto-top-up), and 4 more |
| [`image_manifest_unsupported`](https://legion.ambient.xyz/docs/errors#image_manifest_unsupported) | `422` | [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential) |
| [`image_not_allowed`](https://legion.ambient.xyz/docs/errors#image_not_allowed) | `422` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image) |
| [`image_not_found`](https://legion.ambient.xyz/docs/errors#image_not_found) | `422` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential) |
| [`image_platform_unsupported`](https://legion.ambient.xyz/docs/errors#image_platform_unsupported) | `422` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image) |
| [`image_registry_not_allowed`](https://legion.ambient.xyz/docs/errors#image_registry_not_allowed) | `422` | [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image) |
| [`image_too_large`](https://legion.ambient.xyz/docs/errors#image_too_large) | `422` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image) |
| [`maintenance_note_too_long`](https://legion.ambient.xyz/docs/errors#maintenance_note_too_long) | `422` | [Schedule maintenance on one or many hosts](https://legion.ambient.xyz/docs/api/hosts/schedule-maintenance), [Move or change scheduled maintenance windows](https://legion.ambient.xyz/docs/api/hosts/reschedule-maintenance) |
| [`registry_auth_unsupported`](https://legion.ambient.xyz/docs/errors#registry_auth_unsupported) | `422` | [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential) |
| [`registry_credential_host_mismatch`](https://legion.ambient.xyz/docs/errors#registry_credential_host_mismatch) | `422` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image) |
| [`registry_credential_not_found`](https://legion.ambient.xyz/docs/errors#registry_credential_not_found) | `422` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image) |
| [`registry_credential_rejected`](https://legion.ambient.xyz/docs/errors#registry_credential_rejected) | `422` | [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential) |
| [`registry_ecr_unsupported`](https://legion.ambient.xyz/docs/errors#registry_ecr_unsupported) | `422` | [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential) |
| [`registry_host_not_allowed`](https://legion.ambient.xyz/docs/errors#registry_host_not_allowed) | `422` | [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential) |
| [`registry_not_supported`](https://legion.ambient.xyz/docs/errors#registry_not_supported) | `422` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image) |
| [`registry_realm_not_allowed`](https://legion.ambient.xyz/docs/errors#registry_realm_not_allowed) | `422` | [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential) |
| [`benchmark_request_limited`](https://legion.ambient.xyz/docs/errors#benchmark_request_limited) | `429` | [Ask your host to benchmark again](https://legion.ambient.xyz/docs/api/hosts/request-host-benchmark) |
| [`bid_rate_limited`](https://legion.ambient.xyz/docs/errors#bid_rate_limited) | `429` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental) |
| [`limit_rate_limited`](https://legion.ambient.xyz/docs/errors#limit_rate_limited) | `429` | [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental) |
| [`mirror_quota_exceeded`](https://legion.ambient.xyz/docs/errors#mirror_quota_exceeded) | `429` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image) |
| [`rate_limited`](https://legion.ambient.xyz/docs/errors#rate_limited) | `429` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [What the rental's network blocked or would have blocked in the last 24 hours](https://legion.ambient.xyz/docs/api/rentals/get-rental-network-activity), [Read a rental's logs](https://legion.ambient.xyz/docs/api/rentals/get-rental-logs), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), and 25 more |
| [`internal`](https://legion.ambient.xyz/docs/errors#internal) | `500` |  |
| [`logs_upstream_error`](https://legion.ambient.xyz/docs/errors#logs_upstream_error) | `502` | [Read a rental's logs](https://legion.ambient.xyz/docs/api/rentals/get-rental-logs), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs) |
| [`upstream_unavailable`](https://legion.ambient.xyz/docs/errors#upstream_unavailable) | `502` | [What GPUs can be rented now, and from what price (public)](https://legion.ambient.xyz/docs/api/public/get-public-market) |
| [`backups_unavailable`](https://legion.ambient.xyz/docs/errors#backups_unavailable) | `503` | [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), [Mint a download link for a ready backup](https://legion.ambient.xyz/docs/api/rentals/create-backup-download-link) |
| [`benchmark_request_disabled`](https://legion.ambient.xyz/docs/errors#benchmark_request_disabled) | `503` | [Ask your host to benchmark again](https://legion.ambient.xyz/docs/api/hosts/request-host-benchmark) |
| [`billing_unavailable`](https://legion.ambient.xyz/docs/errors#billing_unavailable) | `503` | [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), [Get what a rental has cost](https://legion.ambient.xyz/docs/api/billing/get-rental-charges), [Get the organization's balance](https://legion.ambient.xyz/docs/api/billing/get-billing-account), [List the organization's ledger entries](https://legion.ambient.xyz/docs/api/billing/list-ledger-entries), and 7 more |
| [`exports_unavailable`](https://legion.ambient.xyz/docs/errors#exports_unavailable) | `503` | [List a rental's recent workspace exports](https://legion.ambient.xyz/docs/api/rentals/list-workspace-exports), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Make a single-use download link for a ready workspace export](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export-download-link) |
| [`image_registry_unavailable`](https://legion.ambient.xyz/docs/errors#image_registry_unavailable) | `503` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential) |
| [`logs_unavailable`](https://legion.ambient.xyz/docs/errors#logs_unavailable) | `503` | [Read a rental's logs](https://legion.ambient.xyz/docs/api/rentals/get-rental-logs), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs) |
| [`offer_alerts_disabled`](https://legion.ambient.xyz/docs/errors#offer_alerts_disabled) | `503` | [Be emailed once when a matching machine is available](https://legion.ambient.xyz/docs/api/offers/create-offer-alert), [Rename, re-arm or change the expiry of an offer alert](https://legion.ambient.xyz/docs/api/offers/update-offer-alert) |
| [`payments_unavailable`](https://legion.ambient.xyz/docs/errors#payments_unavailable) | `503` | [Get the organization's payout setup](https://legion.ambient.xyz/docs/api/billing/get-payout-status), [List the organization's top-ups](https://legion.ambient.xyz/docs/api/billing/list-top-ups), [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [See the organization's auto top-up](https://legion.ambient.xyz/docs/api/billing/get-auto-top-up), [Turn auto top-up on or off and set its amounts](https://legion.ambient.xyz/docs/api/billing/put-auto-top-up), [Save or replace the card auto top-up charges](https://legion.ambient.xyz/docs/api/billing/create-auto-top-up-card), and 5 more |
| [`registry_credentials_unavailable`](https://legion.ambient.xyz/docs/errors#registry_credentials_unavailable) | `503` | [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential), [Remove a registry credential](https://legion.ambient.xyz/docs/api/images/delete-registry-credential) |
| [`registry_sign_ins_unavailable`](https://legion.ambient.xyz/docs/errors#registry_sign_ins_unavailable) | `503` | [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Remove the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/delete-registry-sign-in) |
| [`secrets_unavailable`](https://legion.ambient.xyz/docs/errors#secrets_unavailable) | `503` | [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service) |

## Every error code

- `auto_backup_not_applicable` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `auto_pricing_on` (400): returned by [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `auto_resume_not_applicable` (400): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `bid_not_applicable` (400): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `confirmation_mismatch` (400): returned by [Remove a host](https://legion.ambient.xyz/docs/api/hosts/remove-host)
- `denied_range` (400): returned by [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request)
- `env_reserved` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Estimate what a service would cost](https://legion.ambient.xyz/docs/api/services/estimate-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `host_visibility_not_acknowledged` (400): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `image_outside_prefix` (400): returned by [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential)
- `image_private` (400, 422): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image)
- `image_registry_mismatch` (400): returned by [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in)
- `interruption_behavior_not_allowed` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental)
- `invalid_cidr` (400): returned by [Set the destinations blocked for rentals on a host](https://legion.ambient.xyz/docs/api/hosts/update-host-network)
- `invalid_command` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `invalid_country` (400): returned by [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `invalid_cursor` (400): returned by [List the organization's rentals](https://legion.ambient.xyz/docs/api/rentals/list-rentals), [Read a rental's logs](https://legion.ambient.xyz/docs/api/rentals/get-rental-logs), [A rental's backups, newest first](https://legion.ambient.xyz/docs/api/rentals/list-rental-backups), [The organization's backups, newest first](https://legion.ambient.xyz/docs/api/rentals/list-backups), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs), [List the organization's ledger entries](https://legion.ambient.xyz/docs/api/billing/list-ledger-entries), [List what happened to the organization's balance or earnings](https://legion.ambient.xyz/docs/api/billing/list-billing-activity), [List the organization's top-ups](https://legion.ambient.xyz/docs/api/billing/list-top-ups), [List the organization's promo code redemptions](https://legion.ambient.xyz/docs/api/billing/list-promo-redemptions), [The organization's maintenance windows](https://legion.ambient.xyz/docs/api/hosts/list-maintenance-windows), [A host's listing price history, newest first](https://legion.ambient.xyz/docs/api/hosts/list-host-listing-history), [List the caller's API keys](https://legion.ambient.xyz/docs/api/identity/list-api-keys), [List the organization's members](https://legion.ambient.xyz/docs/api/identity/list-members)
- `invalid_env` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Estimate what a service would cost](https://legion.ambient.xyz/docs/api/services/estimate-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `invalid_hardware` (400): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Estimate what a service would cost](https://legion.ambient.xyz/docs/api/services/estimate-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `invalid_image_reference` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Split an image reference into registry host and path prefix](https://legion.ambient.xyz/docs/api/images/detect-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential)
- `invalid_interruptible_price` (400): returned by [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `invalid_label` (400): returned by [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key)
- `invalid_listing` (400): returned by [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `invalid_logs_query` (400): returned by [Read a rental's logs](https://legion.ambient.xyz/docs/api/rentals/get-rental-logs), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs)
- `invalid_maintenance_window` (400): returned by [Schedule maintenance on one or many hosts](https://legion.ambient.xyz/docs/api/hosts/schedule-maintenance), [What scheduling maintenance would do](https://legion.ambient.xyz/docs/api/hosts/preview-maintenance), [Move or change scheduled maintenance windows](https://legion.ambient.xyz/docs/api/hosts/reschedule-maintenance)
- `invalid_min_price` (400): returned by [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `invalid_model_setting` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Estimate what a service would cost](https://legion.ambient.xyz/docs/api/services/estimate-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `invalid_name` (400): returned by [Rename a host](https://legion.ambient.xyz/docs/api/hosts/rename-host)
- `invalid_path_prefix` (400): returned by [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential)
- `invalid_pattern` (400): returned by [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request)
- `invalid_range` (400): returned by [The organization's earnings over a period, with the previous period](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-overview), [The organization's earnings over time](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-series), [The organization's earnings by one dimension](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-breakdown), [What each of the organization's hosts earned and how it performed](https://legion.ambient.xyz/docs/api/billing/list-provider-earnings-hosts), [One host's earnings, utilization, uptime and price against the market](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-host), [The rentals on the organization's hosts that were billed in a period](https://legion.ambient.xyz/docs/api/billing/list-provider-earnings-rentals), [Hosts that are earning less than they could, with what to do](https://legion.ambient.xyz/docs/api/billing/list-provider-earnings-attention), [What is payable, when the next payout runs and the history of payouts](https://legion.ambient.xyz/docs/api/billing/list-provider-earnings-payouts), [The organization's spend over a period, with the previous period](https://legion.ambient.xyz/docs/api/billing/get-renter-spend-overview), [The organization's spend over time](https://legion.ambient.xyz/docs/api/billing/get-renter-spend-series), [The organization's spend by one dimension](https://legion.ambient.xyz/docs/api/billing/get-renter-spend-breakdown), [The organization's rentals that were charged in a period](https://legion.ambient.xyz/docs/api/billing/list-renter-spend-rentals)
- `invalid_registry_credential` (400): returned by [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential)
- `invalid_request` (400): any operation can answer it. 
- `invalid_scaling` (400): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Estimate what a service would cost](https://legion.ambient.xyz/docs/api/services/estimate-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `invalid_serve` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `invalid_service_name` (400): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `invalid_sign_in` (400): returned by [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in)
- `invalid_source` (400): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `invalid_spend_cap` (400): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `invalid_ssh_key` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key)
- `max_above_on_demand` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `not_a_member` (400): returned by [Change whether a notification is emailed, and to whom](https://legion.ambient.xyz/docs/api/notifications/update-notification-setting)
- `override_not_allowed` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `pattern_too_broad` (400): returned by [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request)
- `price_required` (400): returned by [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `private_key_refused` (400): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key)
- `registry_sign_in_rejected` (400, 422): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in)
- `resume_after_maintenance_not_applicable` (400): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `selected_members_required` (400): returned by [Change whether a notification is emailed, and to whom](https://legion.ambient.xyz/docs/api/notifications/update-notification-setting)
- `service_kind_unsupported` (400): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `unauthorized` (401): any operation can answer it. 
- `insufficient_credit` (402): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Make a single-use download link for a ready workspace export](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export-download-link), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), [Mint a download link for a ready backup](https://legion.ambient.xyz/docs/api/rentals/create-backup-download-link), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `access_not_approved` (403): any operation can answer it. 
- `account_conflict` (403): any operation can answer it. 
- `api_key_required` (403): any operation can answer it. 
- `api_key_scope` (403): any operation can answer it. 
- `catalog_entry_disabled` (403): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental)
- `custom_images_disabled` (403): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `domain_not_allowed` (403): any operation can answer it. 
- `email_unverified` (403): any operation can answer it. 
- `forbidden` (403): any operation can answer it. 
- `no_organization` (403): returned by [Search GPU offers](https://legion.ambient.xyz/docs/api/offers/list-offers), [Get one offer with its score breakdown and uptime history](https://legion.ambient.xyz/docs/api/offers/get-offer), [List the caller's offer alerts](https://legion.ambient.xyz/docs/api/offers/list-offer-alerts), [Be emailed once when a matching machine is available](https://legion.ambient.xyz/docs/api/offers/create-offer-alert), [Get one offer alert](https://legion.ambient.xyz/docs/api/offers/get-offer-alert), [Rename, re-arm or change the expiry of an offer alert](https://legion.ambient.xyz/docs/api/offers/update-offer-alert), [Delete an offer alert](https://legion.ambient.xyz/docs/api/offers/delete-offer-alert), [How the Legion score is computed](https://legion.ambient.xyz/docs/api/offers/get-score-formula), [List the organization's rentals](https://legion.ambient.xyz/docs/api/rentals/list-rentals), [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Get a rental](https://legion.ambient.xyz/docs/api/rentals/get-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [How to reach the model a rental serves](https://legion.ambient.xyz/docs/api/rentals/get-rental-serve), [Create the rental's model service if it has none](https://legion.ambient.xyz/docs/api/rentals/expose-rental-serve), [The rental's effective network policy and whether its host applied it](https://legion.ambient.xyz/docs/api/rentals/get-rental-network), [The host a rental runs on, its health and its GPUs' live telemetry](https://legion.ambient.xyz/docs/api/rentals/get-rental-host), [What the rental's network blocked or would have blocked in the last 24 hours](https://legion.ambient.xyz/docs/api/rentals/get-rental-network-activity), [Read a rental's logs](https://legion.ambient.xyz/docs/api/rentals/get-rental-logs), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental), [List a rental's recent workspace exports](https://legion.ambient.xyz/docs/api/rentals/list-workspace-exports), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Get a workspace export](https://legion.ambient.xyz/docs/api/rentals/get-workspace-export), [Cancel a pending workspace export](https://legion.ambient.xyz/docs/api/rentals/cancel-workspace-export), [What downloading a rental's workspace export will cost](https://legion.ambient.xyz/docs/api/rentals/estimate-workspace-export), [Make a single-use download link for a ready workspace export](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export-download-link), [How long a stopped rental's files are kept, and what backups cost](https://legion.ambient.xyz/docs/api/rentals/get-storage-policy), [Data this rental sent out through Legion's relays, and what it cost](https://legion.ambient.xyz/docs/api/rentals/get-rental-transfer), [The organization's relay traffic this month, its free allowance and the rentals that used most](https://legion.ambient.xyz/docs/api/rentals/get-org-transfer), [What a backup of this rental would cost](https://legion.ambient.xyz/docs/api/rentals/estimate-rental-backup), [A rental's backups, newest first](https://legion.ambient.xyz/docs/api/rentals/list-rental-backups), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), [The organization's backups, newest first](https://legion.ambient.xyz/docs/api/rentals/list-backups), [Get a backup](https://legion.ambient.xyz/docs/api/rentals/get-backup), [Delete a ready backup early](https://legion.ambient.xyz/docs/api/rentals/delete-backup), [Cancel a queued or uploading backup](https://legion.ambient.xyz/docs/api/rentals/cancel-backup), [Mint a download link for a ready backup](https://legion.ambient.xyz/docs/api/rentals/create-backup-download-link), [List the organization's services](https://legion.ambient.xyz/docs/api/services/list-services), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [The defaults of a new service](https://legion.ambient.xyz/docs/api/services/get-service-defaults), [Estimate what a service would cost](https://legion.ambient.xyz/docs/api/services/estimate-service), [Get a service](https://legion.ambient.xyz/docs/api/services/get-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Delete a service](https://legion.ambient.xyz/docs/api/services/delete-service), [Pause a service](https://legion.ambient.xyz/docs/api/services/pause-service), [Resume a paused service](https://legion.ambient.xyz/docs/api/services/resume-service), [List a service's keys](https://legion.ambient.xyz/docs/api/services/list-service-keys), [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), [Revoke a service key](https://legion.ambient.xyz/docs/api/services/revoke-service-key), [Rotate a service key](https://legion.ambient.xyz/docs/api/services/rotate-service-key), [List a service's replicas](https://legion.ambient.xyz/docs/api/services/list-service-replicas), [A service's metrics and cost](https://legion.ambient.xyz/docs/api/services/get-service-usage), [A service's inference metrics](https://legion.ambient.xyz/docs/api/services/get-service-metrics), [A service's activity](https://legion.ambient.xyz/docs/api/services/list-service-events), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs), [Which catalog entries Legion has hidden or disabled, and whether custom images are allowed](https://legion.ambient.xyz/docs/api/images/get-catalog-settings), [List Legion's starter images and premade models, and which a host can run](https://legion.ambient.xyz/docs/api/images/list-catalog), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [The organization's registry sign-ins](https://legion.ambient.xyz/docs/api/images/list-registry-sign-ins), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Remove the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/delete-registry-sign-in), [The organization's registry credentials](https://legion.ambient.xyz/docs/api/images/list-registry-credentials), [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Split an image reference into registry host and path prefix](https://legion.ambient.xyz/docs/api/images/detect-registry-credential), [One registry credential](https://legion.ambient.xyz/docs/api/images/get-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential), [Remove a registry credential](https://legion.ambient.xyz/docs/api/images/delete-registry-credential), [Get what a rental has cost](https://legion.ambient.xyz/docs/api/billing/get-rental-charges), [Get the organization's balance](https://legion.ambient.xyz/docs/api/billing/get-billing-account), [List the organization's ledger entries](https://legion.ambient.xyz/docs/api/billing/list-ledger-entries), [List what happened to the organization's balance or earnings](https://legion.ambient.xyz/docs/api/billing/list-billing-activity), [List what the organization's rentals have cost](https://legion.ambient.xyz/docs/api/billing/list-rental-charges), [Get the organization's provider earnings](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings), [Get what a rental on one of the organization's hosts has earned](https://legion.ambient.xyz/docs/api/billing/get-rental-earnings), [The organization's earnings over a period, with the previous period](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-overview), [The organization's earnings over time](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-series), [The organization's earnings by one dimension](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-breakdown), [What each of the organization's hosts earned and how it performed](https://legion.ambient.xyz/docs/api/billing/list-provider-earnings-hosts), [One host's earnings, utilization, uptime and price against the market](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings-host), [The rentals on the organization's hosts that were billed in a period](https://legion.ambient.xyz/docs/api/billing/list-provider-earnings-rentals), [Hosts that are earning less than they could, with what to do](https://legion.ambient.xyz/docs/api/billing/list-provider-earnings-attention), [What is payable, when the next payout runs and the history of payouts](https://legion.ambient.xyz/docs/api/billing/list-provider-earnings-payouts), [The organization's spend over a period, with the previous period](https://legion.ambient.xyz/docs/api/billing/get-renter-spend-overview), [The organization's spend over time](https://legion.ambient.xyz/docs/api/billing/get-renter-spend-series), [The organization's spend by one dimension](https://legion.ambient.xyz/docs/api/billing/get-renter-spend-breakdown), [The organization's rentals that were charged in a period](https://legion.ambient.xyz/docs/api/billing/list-renter-spend-rentals), [Get the organization's payout setup](https://legion.ambient.xyz/docs/api/billing/get-payout-status), [List the organization's top-ups](https://legion.ambient.xyz/docs/api/billing/list-top-ups), [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [See the organization's auto top-up](https://legion.ambient.xyz/docs/api/billing/get-auto-top-up), [Turn auto top-up on or off and set its amounts](https://legion.ambient.xyz/docs/api/billing/put-auto-top-up), [Save or replace the card auto top-up charges](https://legion.ambient.xyz/docs/api/billing/create-auto-top-up-card), [Remove the saved card and turn auto top-up off](https://legion.ambient.xyz/docs/api/billing/delete-auto-top-up-card), [See how much unused credit can be refunded, and the fee kept](https://legion.ambient.xyz/docs/api/billing/get-credit-refund-quote), [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code), [List the organization's promo code redemptions](https://legion.ambient.xyz/docs/api/billing/list-promo-redemptions), [Get the organization's promo credit and discounts](https://legion.ambient.xyz/docs/api/billing/get-promo-credit), [The organization's outbound allow-list](https://legion.ambient.xyz/docs/api/network/get-egress-allowlist), [Hold the organization's new rentals to the allow-list](https://legion.ambient.xyz/docs/api/network/update-org-egress-mode), [The organization's egress requests](https://legion.ambient.xyz/docs/api/network/list-egress-requests), [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request), [Withdraw a pending egress request](https://legion.ambient.xyz/docs/api/network/withdraw-egress-request), [List pending enrollment tokens](https://legion.ambient.xyz/docs/api/hosts/list-enrollment-tokens), [Create a host enrollment token](https://legion.ambient.xyz/docs/api/hosts/create-enrollment-token), [Revoke an enrollment token](https://legion.ambient.xyz/docs/api/hosts/revoke-enrollment-token), [List the organization's hosts](https://legion.ambient.xyz/docs/api/hosts/list-hosts), [Get a host](https://legion.ambient.xyz/docs/api/hosts/get-host), [Remove a host](https://legion.ambient.xyz/docs/api/hosts/remove-host), [The organization's maintenance windows](https://legion.ambient.xyz/docs/api/hosts/list-maintenance-windows), [Schedule maintenance on one or many hosts](https://legion.ambient.xyz/docs/api/hosts/schedule-maintenance), [What scheduling maintenance would do](https://legion.ambient.xyz/docs/api/hosts/preview-maintenance), [Move or change scheduled maintenance windows](https://legion.ambient.xyz/docs/api/hosts/reschedule-maintenance), [Cancel scheduled maintenance windows](https://legion.ambient.xyz/docs/api/hosts/cancel-maintenance), [End active maintenance windows now ("done with maintenance")](https://legion.ambient.xyz/docs/api/hosts/end-maintenance), [Preview what is on a host before removing it](https://legion.ambient.xyz/docs/api/hosts/get-host-removal-preview), [Rename a host](https://legion.ambient.xyz/docs/api/hosts/rename-host), [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing), [A host's benchmark runs, newest first](https://legion.ambient.xyz/docs/api/hosts/list-host-benchmarks), [Progress of a host's first benchmark](https://legion.ambient.xyz/docs/api/hosts/get-host-first-benchmark), [Ask your host to benchmark again](https://legion.ambient.xyz/docs/api/hosts/request-host-benchmark), [Take your host off its start-failure pause](https://legion.ambient.xyz/docs/api/hosts/release-host-start-hold), [A host's GPU benchmark runs, newest first](https://legion.ambient.xyz/docs/api/hosts/list-host-gpu-benchmarks), [A host's listing price history, newest first](https://legion.ambient.xyz/docs/api/hosts/list-host-listing-history), [What Legion recommends the host charge per GPU-hour](https://legion.ambient.xyz/docs/api/hosts/get-host-price-recommendation), [A host's network state and the abuse flags raised on its rentals](https://legion.ambient.xyz/docs/api/hosts/get-host-network), [Set the destinations blocked for rentals on a host](https://legion.ambient.xyz/docs/api/hosts/update-host-network), [Get the caller](https://legion.ambient.xyz/docs/api/identity/get-me), [List the caller's API keys](https://legion.ambient.xyz/docs/api/identity/list-api-keys), [Create an API key](https://legion.ambient.xyz/docs/api/identity/create-api-key), [Revoke an API key](https://legion.ambient.xyz/docs/api/identity/revoke-api-key), [List the caller's saved SSH public keys](https://legion.ambient.xyz/docs/api/identity/list-ssh-keys), [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key), [Delete a saved SSH public key](https://legion.ambient.xyz/docs/api/identity/delete-ssh-key), [List pending invitations](https://legion.ambient.xyz/docs/api/identity/list-invitations), [Invite a person to the organization](https://legion.ambient.xyz/docs/api/identity/create-invitation), [Revoke a pending invitation](https://legion.ambient.xyz/docs/api/identity/revoke-invitation), [Email an invitation again](https://legion.ambient.xyz/docs/api/identity/resend-invitation), [List the organization's members](https://legion.ambient.xyz/docs/api/identity/list-members), [List the organization's notifications](https://legion.ambient.xyz/docs/api/notifications/list-notifications), [Mark every notification read](https://legion.ambient.xyz/docs/api/notifications/mark-all-notifications-read), [Mark a notification read](https://legion.ambient.xyz/docs/api/notifications/mark-notification-read), [Which notifications are emailed, and to whom](https://legion.ambient.xyz/docs/api/notifications/get-notification-settings), [Change whether a notification is emailed, and to whom](https://legion.ambient.xyz/docs/api/notifications/update-notification-setting)
- `not_a_provider` (403): returned by [Get the organization's payout setup](https://legion.ambient.xyz/docs/api/billing/get-payout-status)
- `oauth_token_mcp_only` (403): any operation can answer it. 
- `org_suspended` (403): any operation can answer it. 
- `owner_required` (403): returned by [Change whether a notification is emailed, and to whom](https://legion.ambient.xyz/docs/api/notifications/update-notification-setting)
- `promo_code_not_eligible` (403): returned by [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code)
- `requests_disabled` (403): returned by [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request)
- `service_unavailable` (403): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `session_required` (403): any operation can answer it. 
- `step_up_required` (403): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Delete a service](https://legion.ambient.xyz/docs/api/services/delete-service), [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), [Rotate a service key](https://legion.ambient.xyz/docs/api/services/rotate-service-key)
- `terminal_access_forbidden` (403): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `terms_not_accepted` (403): any operation can answer it. 
- `web_app_required` (403): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Delete a service](https://legion.ambient.xyz/docs/api/services/delete-service), [Pause a service](https://legion.ambient.xyz/docs/api/services/pause-service), [Resume a paused service](https://legion.ambient.xyz/docs/api/services/resume-service), [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), [Revoke a service key](https://legion.ambient.xyz/docs/api/services/revoke-service-key), [Rotate a service key](https://legion.ambient.xyz/docs/api/services/rotate-service-key)
- `host_not_offered` (404): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental)
- `not_found` (404): any operation can answer it. 
- `promo_code_not_found` (404): returned by [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code)
- `replica_not_found` (404): returned by [A service's inference metrics](https://legion.ambient.xyz/docs/api/services/get-service-metrics), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs)
- `serve_not_configured` (404): returned by [How to reach the model a rental serves](https://legion.ambient.xyz/docs/api/rentals/get-rental-serve), [Create the rental's model service if it has none](https://legion.ambient.xyz/docs/api/rentals/expose-rental-serve)
- `method_not_allowed` (405): returned by [What GPUs can be rented now, and from what price (public)](https://legion.ambient.xyz/docs/api/public/get-public-market)
- `alert_limit_reached` (409): returned by [Be emailed once when a matching machine is available](https://legion.ambient.xyz/docs/api/offers/create-offer-alert), [Rename, re-arm or change the expiry of an offer alert](https://legion.ambient.xyz/docs/api/offers/update-offer-alert)
- `alert_not_active` (409): returned by [Rename, re-arm or change the expiry of an offer alert](https://legion.ambient.xyz/docs/api/offers/update-offer-alert)
- `already_member` (409): returned by [Invite a person to the organization](https://legion.ambient.xyz/docs/api/identity/create-invitation), [Email an invitation again](https://legion.ambient.xyz/docs/api/identity/resend-invitation)
- `auto_pricing_disabled` (409): returned by [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `backup_in_progress` (409): returned by [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup)
- `backup_not_cancellable` (409): returned by [Cancel a queued or uploading backup](https://legion.ambient.xyz/docs/api/rentals/cancel-backup)
- `backup_not_ready` (409): returned by [Delete a ready backup early](https://legion.ambient.xyz/docs/api/rentals/delete-backup), [Mint a download link for a ready backup](https://legion.ambient.xyz/docs/api/rentals/create-backup-download-link)
- `backup_too_slow` (409): returned by [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup)
- `bid_below_floor` (409): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `bid_cancelled` (409): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `bid_too_low` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `catalog_entry_incompatible` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental)
- `egress_already_allowed` (409): returned by [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request)
- `egress_mode_set_by_admin` (409): returned by [Hold the organization's new rentals to the allow-list](https://legion.ambient.xyz/docs/api/network/update-org-egress-mode)
- `egress_request_exists` (409): returned by [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request)
- `egress_request_not_pending` (409): returned by [Withdraw a pending egress request](https://legion.ambient.xyz/docs/api/network/withdraw-egress-request)
- `enforce_unavailable` (409): returned by [Hold the organization's new rentals to the allow-list](https://legion.ambient.xyz/docs/api/network/update-org-egress-mode), [Set the destinations blocked for rentals on a host](https://legion.ambient.xyz/docs/api/hosts/update-host-network)
- `exceeds_refundable` (409): returned by [See how much unused credit can be refunded, and the fee kept](https://legion.ambient.xyz/docs/api/billing/get-credit-refund-quote), [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund)
- `export_in_progress` (409): returned by [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup)
- `export_not_cancellable` (409): returned by [Cancel a pending workspace export](https://legion.ambient.xyz/docs/api/rentals/cancel-workspace-export)
- `export_not_ready` (409): returned by [Make a single-use download link for a ready workspace export](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export-download-link)
- `floor_cooldown` (409): returned by [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `gpus_unavailable` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental)
- `host_disk_full` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental)
- `host_has_active_rentals` (409): returned by [Remove a host](https://legion.ambient.xyz/docs/api/hosts/remove-host)
- `host_has_stored_data` (409): returned by [Remove a host](https://legion.ambient.xyz/docs/api/hosts/remove-host)
- `host_maintenance` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental)
- `host_offline` (409): returned by [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup)
- `host_removed` (409): returned by [Rename a host](https://legion.ambient.xyz/docs/api/hosts/rename-host), [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `host_removing` (409): returned by [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `host_start_hold` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental)
- `host_unavailable` (409): returned by [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental)
- `host_unsupported` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `interruptible_has_bids` (409): returned by [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `invalid_mode_switch` (409): returned by [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `invitation_exists` (409): returned by [Invite a person to the organization](https://legion.ambient.xyz/docs/api/identity/create-invitation)
- `invitation_not_pending` (409): returned by [Email an invitation again](https://legion.ambient.xyz/docs/api/identity/resend-invitation)
- `key_revoked` (409): returned by [Rotate a service key](https://legion.ambient.xyz/docs/api/services/rotate-service-key)
- `linked_host` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental)
- `model_settings_do_not_fit` (409): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `model_settings_unavailable` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `name_taken` (409): returned by [Rename a host](https://legion.ambient.xyz/docs/api/hosts/rename-host)
- `no_matching_offers` (409): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `no_recommendation` (409): returned by [Set a host's price and availability](https://legion.ambient.xyz/docs/api/hosts/update-listing)
- `no_saved_card` (409): returned by [Turn auto top-up on or off and set its amounts](https://legion.ambient.xyz/docs/api/billing/put-auto-top-up)
- `notice_open` (409): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `own_host` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental)
- `price_changed` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental)
- `promo_budget_reached` (409): returned by [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code)
- `promo_code_already_redeemed` (409): returned by [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code)
- `promo_code_expired` (409): returned by [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code)
- `promo_code_not_started` (409): returned by [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code)
- `promo_code_used_up` (409): returned by [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code)
- `promo_code_wrong_kind` (409): returned by [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code)
- `promotions_paused` (409): returned by [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code)
- `refund_quote_changed` (409): returned by [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund)
- `registry_credential_exists` (409): returned by [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential)
- `registry_credential_in_use` (409): returned by [Remove the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/delete-registry-sign-in), [Remove a registry credential](https://legion.ambient.xyz/docs/api/images/delete-registry-credential)
- `registry_credential_limit` (409): returned by [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential)
- `registry_sign_in_in_use` (409): returned by [Remove the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/delete-registry-sign-in)
- `rental_deleted` (409): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `rental_deleting` (409): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `rental_failed` (409): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `rental_held` (409): returned by [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup)
- `rental_managed_by_service` (409): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [How to reach the model a rental serves](https://legion.ambient.xyz/docs/api/rentals/get-rental-serve), [Create the rental's model service if it has none](https://legion.ambient.xyz/docs/api/rentals/expose-rental-serve), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Restart a stopped rental](https://legion.ambient.xyz/docs/api/rentals/start-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup)
- `rental_not_live` (409): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request)
- `rental_not_stopped` (409): returned by [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup)
- `rental_unnamed` (409): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `rentals_running` (409): returned by [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund)
- `replica_limit_exceeded` (409): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `revision_mismatch` (409): returned by [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
- `rule_exists` (409): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `service_capped` (409): returned by [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Resume a paused service](https://legion.ambient.xyz/docs/api/services/resume-service)
- `service_deleting` (409): returned by [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Pause a service](https://legion.ambient.xyz/docs/api/services/pause-service), [Resume a paused service](https://legion.ambient.xyz/docs/api/services/resume-service), [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), [Rotate a service key](https://legion.ambient.xyz/docs/api/services/rotate-service-key)
- `service_disabled` (409): returned by [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Resume a paused service](https://legion.ambient.xyz/docs/api/services/resume-service)
- `service_name_taken` (409): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `service_not_autoscaled` (409): returned by [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Pause a service](https://legion.ambient.xyz/docs/api/services/pause-service), [Resume a paused service](https://legion.ambient.xyz/docs/api/services/resume-service)
- `ssh_key_exists` (409): returned by [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key)
- `ssh_key_limit` (409): returned by [Save an SSH public key](https://legion.ambient.xyz/docs/api/identity/add-ssh-key)
- `test_org_live_payment` (409): returned by [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Turn auto top-up on or off and set its amounts](https://legion.ambient.xyz/docs/api/billing/put-auto-top-up), [Save or replace the card auto top-up charges](https://legion.ambient.xyz/docs/api/billing/create-auto-top-up-card)
- `test_org_no_refunds` (409): returned by [See how much unused credit can be refunded, and the fee kept](https://legion.ambient.xyz/docs/api/billing/get-credit-refund-quote), [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund)
- `tier_unavailable` (409): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental)
- `too_many_keys` (409): returned by [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), [Rotate a service key](https://legion.ambient.xyz/docs/api/services/rotate-service-key)
- `too_many_rules` (409): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `too_many_services` (409): returned by [Create a service](https://legion.ambient.xyz/docs/api/services/create-service)
- `link_used` (410): returned by [Make a single-use download link for a ready workspace export](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export-download-link), [Mint a download link for a ready backup](https://legion.ambient.xyz/docs/api/rentals/create-backup-download-link)
- `request_too_large` (413): any operation can answer it. 
- `idempotency_key_reused` (422): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Turn auto top-up on or off and set its amounts](https://legion.ambient.xyz/docs/api/billing/put-auto-top-up), [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code), [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request), [Schedule maintenance on one or many hosts](https://legion.ambient.xyz/docs/api/hosts/schedule-maintenance)
- `image_manifest_unsupported` (422): returned by [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential)
- `image_not_allowed` (422): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image)
- `image_not_found` (422): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential)
- `image_platform_unsupported` (422): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image)
- `image_registry_not_allowed` (422): returned by [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image)
- `image_too_large` (422): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image)
- `maintenance_note_too_long` (422): returned by [Schedule maintenance on one or many hosts](https://legion.ambient.xyz/docs/api/hosts/schedule-maintenance), [Move or change scheduled maintenance windows](https://legion.ambient.xyz/docs/api/hosts/reschedule-maintenance)
- `registry_auth_unsupported` (422): returned by [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential)
- `registry_credential_host_mismatch` (422): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image)
- `registry_credential_not_found` (422): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image)
- `registry_credential_rejected` (422): returned by [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential)
- `registry_ecr_unsupported` (422): returned by [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential)
- `registry_host_not_allowed` (422): returned by [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential)
- `registry_not_supported` (422): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image)
- `registry_realm_not_allowed` (422): returned by [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential)
- `benchmark_request_limited` (429): returned by [Ask your host to benchmark again](https://legion.ambient.xyz/docs/api/hosts/request-host-benchmark)
- `bid_rate_limited` (429): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental)
- `limit_rate_limited` (429): returned by [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental)
- `mirror_quota_exceeded` (429): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image)
- `rate_limited` (429): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [What the rental's network blocked or would have blocked in the last 24 hours](https://legion.ambient.xyz/docs/api/rentals/get-rental-network-activity), [Read a rental's logs](https://legion.ambient.xyz/docs/api/rentals/get-rental-logs), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), [Mint a download link for a ready backup](https://legion.ambient.xyz/docs/api/rentals/create-backup-download-link), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Create a service key](https://legion.ambient.xyz/docs/api/services/create-service-key), [Rotate a service key](https://legion.ambient.xyz/docs/api/services/rotate-service-key), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential), [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Turn auto top-up on or off and set its amounts](https://legion.ambient.xyz/docs/api/billing/put-auto-top-up), [Save or replace the card auto top-up charges](https://legion.ambient.xyz/docs/api/billing/create-auto-top-up-card), [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code), [Ask for a destination to be added to the allow-list](https://legion.ambient.xyz/docs/api/network/create-egress-request), [Schedule maintenance on one or many hosts](https://legion.ambient.xyz/docs/api/hosts/schedule-maintenance), [Move or change scheduled maintenance windows](https://legion.ambient.xyz/docs/api/hosts/reschedule-maintenance), [Cancel scheduled maintenance windows](https://legion.ambient.xyz/docs/api/hosts/cancel-maintenance), [End active maintenance windows now ("done with maintenance")](https://legion.ambient.xyz/docs/api/hosts/end-maintenance), [A host's network state and the abuse flags raised on its rentals](https://legion.ambient.xyz/docs/api/hosts/get-host-network), [Invite a person to the organization](https://legion.ambient.xyz/docs/api/identity/create-invitation), [Email an invitation again](https://legion.ambient.xyz/docs/api/identity/resend-invitation), [What GPUs can be rented now, and from what price (public)](https://legion.ambient.xyz/docs/api/public/get-public-market)
- `internal` (500): any operation can answer it. 
- `logs_upstream_error` (502): returned by [Read a rental's logs](https://legion.ambient.xyz/docs/api/rentals/get-rental-logs), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs)
- `upstream_unavailable` (502): returned by [What GPUs can be rented now, and from what price (public)](https://legion.ambient.xyz/docs/api/public/get-public-market)
- `backups_unavailable` (503): returned by [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), [Mint a download link for a ready backup](https://legion.ambient.xyz/docs/api/rentals/create-backup-download-link)
- `benchmark_request_disabled` (503): returned by [Ask your host to benchmark again](https://legion.ambient.xyz/docs/api/hosts/request-host-benchmark)
- `billing_unavailable` (503): returned by [Delete a rental and its workspace](https://legion.ambient.xyz/docs/api/rentals/delete-rental), [Stop a rental](https://legion.ambient.xyz/docs/api/rentals/stop-rental), [Back up a stopped or failed rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-rental-backup), [Get what a rental has cost](https://legion.ambient.xyz/docs/api/billing/get-rental-charges), [Get the organization's balance](https://legion.ambient.xyz/docs/api/billing/get-billing-account), [List the organization's ledger entries](https://legion.ambient.xyz/docs/api/billing/list-ledger-entries), [List what the organization's rentals have cost](https://legion.ambient.xyz/docs/api/billing/list-rental-charges), [Get the organization's provider earnings](https://legion.ambient.xyz/docs/api/billing/get-provider-earnings), [Get what a rental on one of the organization's hosts has earned](https://legion.ambient.xyz/docs/api/billing/get-rental-earnings), [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code), [Get the organization's promo credit and discounts](https://legion.ambient.xyz/docs/api/billing/get-promo-credit)
- `exports_unavailable` (503): returned by [List a rental's recent workspace exports](https://legion.ambient.xyz/docs/api/rentals/list-workspace-exports), [Export a stopped rental's workspace](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export), [Make a single-use download link for a ready workspace export](https://legion.ambient.xyz/docs/api/rentals/create-workspace-export-download-link)
- `image_registry_unavailable` (503): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Inspect a container image before renting it](https://legion.ambient.xyz/docs/api/images/inspect-image), [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential)
- `logs_unavailable` (503): returned by [Read a rental's logs](https://legion.ambient.xyz/docs/api/rentals/get-rental-logs), [Read a service's logs, every replica](https://legion.ambient.xyz/docs/api/services/get-service-logs)
- `offer_alerts_disabled` (503): returned by [Be emailed once when a matching machine is available](https://legion.ambient.xyz/docs/api/offers/create-offer-alert), [Rename, re-arm or change the expiry of an offer alert](https://legion.ambient.xyz/docs/api/offers/update-offer-alert)
- `payments_unavailable` (503): returned by [Get the organization's payout setup](https://legion.ambient.xyz/docs/api/billing/get-payout-status), [List the organization's top-ups](https://legion.ambient.xyz/docs/api/billing/list-top-ups), [Top up the organization's balance](https://legion.ambient.xyz/docs/api/billing/create-top-up), [See the organization's auto top-up](https://legion.ambient.xyz/docs/api/billing/get-auto-top-up), [Turn auto top-up on or off and set its amounts](https://legion.ambient.xyz/docs/api/billing/put-auto-top-up), [Save or replace the card auto top-up charges](https://legion.ambient.xyz/docs/api/billing/create-auto-top-up-card), [Remove the saved card and turn auto top-up off](https://legion.ambient.xyz/docs/api/billing/delete-auto-top-up-card), [See how much unused credit can be refunded, and the fee kept](https://legion.ambient.xyz/docs/api/billing/get-credit-refund-quote), [Refund unused credit to the cards and bank accounts it came from](https://legion.ambient.xyz/docs/api/billing/create-credit-refund), [Check what a promo code gives the organization](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [Redeem a promo code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code)
- `registry_credentials_unavailable` (503): returned by [Save a registry credential](https://legion.ambient.xyz/docs/api/images/create-registry-credential), [Rename a registry credential or replace its secret](https://legion.ambient.xyz/docs/api/images/update-registry-credential), [Remove a registry credential](https://legion.ambient.xyz/docs/api/images/delete-registry-credential)
- `registry_sign_ins_unavailable` (503): returned by [Save the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/put-registry-sign-in), [Remove the organization's sign-in for a registry](https://legion.ambient.xyz/docs/api/images/delete-registry-sign-in)
- `secrets_unavailable` (503): returned by [Rent GPUs on a host](https://legion.ambient.xyz/docs/api/rentals/create-rental), [Change a rental's settings](https://legion.ambient.xyz/docs/api/rentals/update-rental), [Create a service](https://legion.ambient.xyz/docs/api/services/create-service), [Change a service's model, hardware, scaling or budget, or switch autoscaling on or off](https://legion.ambient.xyz/docs/api/services/update-service)
