started implementing error responses in actual server. Also started refactoring constants class