Shared Responses
These may show up on any given route in any service.
The content of error is unreliable, use code instead. See Error Codes for a full list.
API Key Is Inactive
401 Unauthorized
{
"success": false,
"error": "Api key is inactive.",
"code": 1011
}API Key Disabled
403 Forbidden
{
"success": "false",
"error": "Your api key has been disabled by an administrator. See \"extra.reason\" for the reasoning.",
"extra": {
"reason": "",
"support": "https://yiff.rest/support"
},
"code": 1012
}Bad User Agent
403 Forbidden
// Reasons:
// Bots are not allowed to crawl our api.
// This is a default library user agent, and does not give us any information about the client making the request. Please set an informative user agent.
// The user agent you supplied is non-informative, it's likely just one word or something meaningless. Please provide actual client info in your user agent.
// You did not supply a user agent. You need to supply one with valid client information.
// This user agent has been blocked for spamming our api. Don't do that.
{
"success": false,
"error": "Your user agent has been blocked. See \"extra\" for the reasoning.",
"extra": {
"reason": "(see top)",
"help": "https://yiff.rest/support"
},
"code": 1021
}Last updated
Was this helpful?