MISDIRECTED_REQUEST Request sent to the wrong host
- HTTP status
421- Credit
- No credit taken
Meaning
The API (API keys) lives at api.checkslip.com and the web app at app.checkslip.com; this request was sent to a different host.
Cause
The Host header is neither api.checkslip.com nor app.checkslip.com.
Fix
Change the base URL to https://api.checkslip.com.
Example response
{
"type": "https://checkslip.com/problems/misdirected-request",
"title": "Request sent to the wrong host",
"status": 421,
"instance": "01a18600-0000-7000-8000-000000000000",
"code": "MISDIRECTED_REQUEST"
}