Ugh! I'm so tired of writing the same switch statement over and over to get a status code definition when I'm setting headers. There has got to be a better way!
ENTER http-status-code-definitions
Find the language of your choice and use the code. Don't see your language? Send me a pull request.
Together we'll never have to write the same fucking code again.
The status code definitions in this project were obtained from status_lines[] within http_protocol.c in the Apache source.