Error response format
All API errors return a JSON body:HTTP status codes
Rate limiting
The MM API enforces 2,000 requests/minute per client API key. When rate limited, the API returns429 Too Many Requests. Implement exponential backoff in your retry logic (wait 1s, 2s, 4s, etc.).
Common errors
Authentication (401)
Your API key is missing, invalid, or not in UUID format.Not found (404)
The requested resource doesn’t exist:Validation errors (422)
Required query parameters are missing or have invalid values. Check theloc field to identify the problematic parameter.
WebSocket upgrade (426)
If you call the WebSocket endpoint via HTTP instead of upgrading to a WebSocket connection, you receive a426 Upgrade Required.