You can use HAProxy or the nginx echo module for this. You don't even need to bother creating an index file to be served.<p><pre><code> location / {
echo "42";
}
</code></pre>
In fact, I wonder if I could use iptables to return a string...<p>Oh, even better - There's probably a jQuery plugin for this!
Ah, this reminds me of a small service I wrote when our load balancing was being finicky to help the business side know if tech was aware of a problem.<p><a href="http://doestechknowthesiteisdown.azurewebsites.net/" rel="nofollow">http://doestechknowthesiteisdown.azurewebsites.net/</a><p><a href="http://doestechknowthesiteisdown.azurewebsites.net/api/Yes/But%20please%20stand%20over%20their%20shoulders%20and%20ask%20for%20an%20explanation%20for%20what%27s%20going%20on%20as%20we%20try%20to%20fix%20it" rel="nofollow">http://doestechknowthesiteisdown.azurewebsites.net/api/Yes/B...</a>
Ha! Reminds me of something I did a long time ago: <a href="http://whatis7times.thenumber6.com/" rel="nofollow">http://whatis7times.thenumber6.com/</a>
Do you plan to release it as open source in the event of getting acquihired?<p>On a more serious note, if SaaS APIs are function calls, this is an equivalent of a constant. Let's build a cloud programming language! Anyone wants to write cons, car, cdr, cond, quote and lambda SaaSes?
404 for <a href="http://fortytwo-as-a-service.herokuapp.com/42" rel="nofollow">http://fortytwo-as-a-service.herokuapp.com/42</a>, it's a shame.
While your API is well-done from a technical perspective, what I'm really impressed of is your client ecosystem. There are bindings for pretty much all relevant languages, even COBOL and bare x86 assembler. And most are even part of the language core, so you don't even need a library. That must have required some negotiation skills!
For the Pro plan, visit the pricing page:
<a href="http://fortytwo-as-a-service.herokuapp.com/pricing" rel="nofollow">http://fortytwo-as-a-service.herokuapp.com/pricing</a>