Fixed issue#10 - Error handling for proxy.php

Fixed error handling issue in php. Now, proxy.php returns corresponding response code from the service with error message.