validate Image Progress
Docker can report an operation failure inside a successful NDJSON response.
suspend fun <TAux> HttpResponse.validateImageProgress(auxSerializer: KSerializer<TAux>, onProgress: suspend (ImageProgress<TAux>) -> Unit): Result<Unit, ErrorResponse>