Changed handling of unexpected HTTP status.