A quick explanation and summary:
In HTTP, there are expected codes to represent certain things. For example, 200
means everything is good, whereas 500
means the server is having a problem.
Native applications also return status codes. For example, git returns a 0
when everything is ok, but returns a 128
if git isnt set up in the current directory. (Bash returns 127
if git isnt even installed)
Now, the question:
When creating my own application, is there any standard convention that should be used for exit codes?
I know that I should return 0
for when the program exits properly. Is there a standard such as the http standard for exit codes?