errorResponse

suspend fun HttpResponse.errorResponse(): ErrorResponse

Handles bodyless HEAD errors and non-JSON daemon/proxy responses.