API errors and rate limits

The full /api/v1 error code table, rate-limit headers, and how to back off correctly.