61 | To return image/png
, use{" "}
62 |
63 | https://httpraccoons.com/
64 | [status_code]
65 |
{" "}
66 | (CDN:{" "}
67 |
68 | https://cdn.httpraccoons.com/
69 | [status_code].png
70 |
71 | )
72 |
75 | To return text/plain
, use{" "}
76 |
77 | https://httpraccoons.com/
78 | text/
79 | [status_code]
80 |
81 |
84 | To return application/json
, use{" "}
85 |
86 | https://httpraccoons.com/
87 | json/
88 | [status_code]
89 |
90 |
93 | Any{" "}
94 |
95 | [status_code]
96 |
{" "}
97 | can be replaced by{" "}
98 |
99 | random
100 |
{" "}
101 | to return a random status code like{" "}
102 |
103 |
104 | https://httpraccoons.com/
105 | random
106 |
107 |
108 |
111 | To return the requested HTTP code (200-599) instead of 200 OK, add{" "}
112 |
113 | ?real=1
114 |
{" "}
115 | or{" "}
116 |
117 | ?simulate=1
118 |
{" "}
119 | like{" "}
120 |
121 |
122 | https://httpraccoons.com/500
123 | ?real=1
124 |
125 |
126 |
129 | To set the response time manually, add{" "}
130 |
131 | ?wait=x
132 |
{" "}
133 | or{" "}
134 |
135 | ?sleep=x
136 |
{" "}
137 | where x
is an integer of
138 | milliseconds (max 110000) like{" "}
139 |
140 |
141 | https://httpraccoons.com/500
142 | ?wait=5000
143 |
144 |
145 |
148 | Combined, it might look like{" "}
149 |
150 |
151 | https://httpraccoons.com/
152 | json/
153 | 420
154 | ?simulate=true
155 | &sleep=6000
156 |
157 |
158 |
164 |
165 | JSON.
166 | stringify(
167 | statuses
168 | )
169 |
170 |
171 |
172 |