Handle HTTP status code 500 explicitly.

This makes quickupload display the serverError message in case the
request dies with HTTP status code 500.