Moved http_response decorator and error classes to server.py
Changes made based on code review. Re-organized imports, improved docstrings, comments, removed errant code

Changes based on code review, aligned arguments, organized import statements, formatting issues.

Sorted imports, removed unnecessary spaces. Final changes before closing
pull request.