开发者

Find websites returning 503 response codes

Where can I find pages returning 503 codes so I can test a script I'm working on?

Th开发者_StackOverflowanks


One possibility is to create a separate script that returns the status code in question. The contents of such HTTP response should be pretty straighforward:

HTTP/1.0 503 Service Unavailable

But if you are not fond of building it all by yourself then you can use FakeWeb which is a test helper for faking responses to web requests.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜