makes a few style changes(replaces hardcoded numbers with constants). TODO: implement response headers(optional).