Implemented error codes
Implement HTTP status codes
Add threading support