Follow

Programs which fail and then return status code 0 are SUPER COOL GUYS

@sir it feels very like such http response:

200 {"status": "not_found", "code": 404}

@sir weirdest API I worked with would do 302 redirect to error page.

@sir I once wrote a script which returns 0 on failure. A while later, I wrote a second script which ran the first script, and re-ran it if it failed. Ended up bricking a microcontroller because the first script failed without being retried.

Friends don't let friends return improper status codes.

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!