Added HTTP Response Codes and detailed Exception handling