added http 500 handling to send_request.
better context for http 500
Merge pull request #8 from frapposelli/http500_handling

Http500 handling