File

teal-src/net/http/errors.d.tl @ 12816:02f8b10d73e8

mod_s2s_auth_certs: Validate certificates against secure SRV targets Secure delegation or "Mini-DANE" As with the existing DANE support, only usable in one direction, client certificate authentication will fail if this is relied on.
author Kim Alvefur <zash@zash.se>
date Thu, 22 Dec 2022 00:13:37 +0100
parent 12609:a8eb838fc6cf
line wrap: on
line source

local record http_errors
	enum known_conditions
		"cancelled"
		"connection-closed"
		"certificate-chain-invalid"
		"certificate-verify-failed"
		"connection failed"
		"invalid-url"
		"unable to resolve service"
	end
	type registry_keys = known_conditions | integer
	record error
		type : string
		condition : string
		code : integer
		text : string
	end
	registry : { registry_keys : error }
	new : function (integer, known_conditions, table)
	new : function (integer, string, table)
end
return http_errors