Handle HTTP status code 500 explicitly.

This makes quickupload display the serverError message in case the
request dies with HTTP status code 500.
Merge pull request #27 from durko/master

Handle HTTP status code 500