fix doc
Wait until a server thread is finished.
Define class methods instead of instance methods
Returns PROTOCOL_ERROR when received header doesn't contain status or version.