// Copyright 2019-2020 Yusuke Sakurai. All rights reserved. MIT license.import{STATUS_TEXT}from"./vendor/https/deno.land/std/http/http_status.ts";exportclassRoutingErrorextendsError{constructor(readonly status:number, msg?:string){super(msg ??STATUS_TEXT.get(status)??"");}}exportclassUnexpectedEofErrorextendsError{constructor(msg ="unexpected eof"){super(msg);}} /** error that is thrown when tcp connection is closed */exportclassConnectionClosedErrorextendsError{constructor(msg ="connection closed"){super(msg);}} exportclassTimeoutErrorextendsError{constructor(msg ="operation timeout"){super(msg);}}