Moved http_response decorator and error classes to server.py