package http_errors; typedef HttpErrorConstructor = ts.AnyOf2<() -> HttpError, (msg:String) -> HttpError>;