var e=[`content-encoding`,`content-length`,`content-range`,`content-type`,`transfer-encoding`];function t(t,n){for(let n of e)t.delete(n);t.set(`Allow`,n),t.set(`Content-Type`,`text/plain; charset=utf-8`)}function n(e){return new Response(`Bad Request`,{status:400,headers:e?.headers})}function r(e){return new Response(`This page could not be found`,{status:404,headers:e?.headers})}function i(e){let t=new Headers(e);return t.delete(`content-encoding`),t.delete(`content-length`),t.delete(`transfer-encoding`),t.set(`Content-Type`,`text/plain; charset=utf-8`),new Response(`Not Found`,{status:404,headers:t})}function a(e,n){let r=new Headers(n?.headers);return t(r,e),new Response(`Method Not Allowed`,{status:405,headers:r})}export{t as a,i,a as n,r,n as t};