TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Statuscoder, easily get any HTTP status code for testing

54 点作者 ajack将近 13 年前
I recently wanted to test how a part of a web app responded to a 502 HTTP status code from a remote site from which it was pulling data. When I came to test it, the remote site was working fine, but I still wanted the 502. So I created statuscoder, just append your desired status code to the URL and it'll respond with that code.<p>http://statuscoder.com<p>It's my first single-use project and I like its simplicity - it does one job and (hopefully) does it well. Is there anything else that you'd want to see it do?

6 条评论

nigma将近 13 年前
Also <a href="http://httpbin.org/" rel="nofollow">http://httpbin.org/</a>. It can handle more test cases and the source code is on github.
mcpherrinm将近 13 年前
Bad SSL configuration on this server. Looks like it's missing an intermediate certificate.<p>Instructions for the site owner are here: <a href="http://www.alphassl.com/support/install-root-certificate.html" rel="nofollow">http://www.alphassl.com/support/install-root-certificate.htm...</a><p>I'm not adding an exception to view it, and non-SSL redirects to SSL.
评论 #4123697 未加载
评论 #4123689 未加载
评论 #4123799 未加载
评论 #4123685 未加载
Herald_MJ将近 13 年前
<a href="http://httpstat.us" rel="nofollow">http://httpstat.us</a> does this too.
prodigal_erik将近 13 年前
I'm not very familiar with X-Frame-Options and X-XSS-Protection headers. Do they actually do anything for errors or empty responses, or does this stack just add them by default?
Alan01252将近 13 年前
<a href="https://statuscoder.com/418" rel="nofollow">https://statuscoder.com/418</a><p>Thanks you made me smile. :) Can I ask you what your motivation for this project is?
评论 #4123742 未加载
nja将近 13 年前
This is pretty cool! I'm just disappointed that 420 doesn't say Enhance Your Calm, but then again, you're not Twitter <a href="https://dev.twitter.com/docs/error-codes-responses" rel="nofollow">https://dev.twitter.com/docs/error-codes-responses</a>