LayerHopdocs

Error codes

UNAUTHORIZED

Unauthorized: A provider rejected LayerHop's credentials.

Open in ClaudeOpen in ChatGPT
HTTP status Retry
401 no

Where it comes from: Provider errors from 0x, Relay and LI.FI. LayerHop API keys are not enforced yet.

Causes#

  • The operator's provider API key is missing or invalid (0x always needs ZEROX_API_KEY).

How to fix#

  • Operators: set or rotate the provider key in the API environment.
  • Integrators: report it with the requestId; other quotes in quotes[] remain usable.

Example response#

JSON
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "0x: Invalid API key",
    "requestId": "0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21",
    "docsUrl": "https://docs.layerhop.com/errors/UNAUTHORIZED"
  }
}

See Error handling & retries for a retry strategy, and the error catalog for every code.