Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Responsecodes.xyz
25 points by deweyair on July 2, 2022 | hide | past | favorite | 15 comments
responsecodes.xyz returns response status codes based on the subdomain.

https://222.responsecodes.xyz returns a response with a status code of 222.

https://999.responsecodes.xyz returns a response with a status code of 999.

Non-numeric subdomains will return a 400.

I built this because I needed it and I couldn't find one after searching around for a few minutes.



I've needed thing like this a few month back and stumbled upon https://mock.codes/ which does the job too


I currently run this! Kinda... I haven't really touched it since 2017 when I built it as an evening project to see if it could be done as a static AWS API Gateway configuration. It costs a few dollars a month plus the domain cost and a fair amount of people use it so I've kept it up and running.

I've been meaning on writing the same functionality as an actual application and adding things like custom response timers, timeouts and more and deploying it to fly.io to try their service out but I haven't gotten around to doing it yet.


Cool! I think there's a lot of neat stuff that could be added here. Funny how a little event project can be so useful!


If you have any requests I'm happy to try to to implement them!


The biggest thing for me was that I needed to use subdomains. I needed to test a dependency that let the consumer pass in a domain, but no path. Subdomains fit the bill for that. It's the only thing I can think of offhand :-)

If you'd like, feel free to email me at contact@responsecodes.xyz and we can collab


How much would you save if you ran this on Cloudflare Workers?


I'm not really looking at it from a cost savings perspective since the operational cost is so low that even an hour of work covers paying for multiple years of it running. It really boils down to what different platforms I want to try out but you're right that Cloudflare Workers is another one to consider.


This is slick - thanks for sharing! I like how they list what the response codes are for


Adding a clicky link https://responsecodes.xyz, and for a 200 https://200.responsecodes.xyz


I actually encountered the same issue. I knew there was some service doing that, but I couldn't find it using Google. It took me several minutes.

I guess you have and edge if you manage to match user intent with your keywords and get ranked by Google.

Good luck!



This is the service I was trying to find but couldn't remember, thanks


> I built this because I needed it

There's ways to test software without having to leave localhost.


[flagged]


That’s kind of a strange and rude thing to say… Don’t yuck his yum.


You mean someone wrote something redundant on the internet? Shocking.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: