To return image/png
, use https://api.onlyraccoons.com/png/[status_code]
or just https://api.onlyraccoons.com/[status_code]
To return image/jpeg
, use https://api.onlyraccoons.com/jpeg/[status_code]
To return image/webp
, use https://api.onlyraccoons.com/webp/[status_code]
To return text/plain
, use https://api.onlyraccoons.com/text/[status_code]
To return application/json
, use https://api.onlyraccoons.com/json/[status_code]
To return the requested HTTP code (200-599) instead of 200 OK, add ?real=1
or ?simulate=1
like https://api.onlyraccoons.com/500?real=1
To set the response time manually, add ?wait=x
or ?sleep=x
where x
is an integer of milliseconds (max 110000) like https://api.onlyraccoons.com/500?wait=5000
Combined, it might look like https://api.onlyraccoons.com/json/420?simulate=true&sleep=6000
JSON.stringify(statuses)