Should be checking if the FD is writable, not readable
Got confused with the naming of errno. ERRNO is just a define in http_error_codes.h
Syntax