sig
  type mode = Http | Cgi
  type error = User | Server | Unauth
  exception User_exn of string
  exception Server_exn of string
  exception Unauth_exn of string
end