예제 #1
0
        public static HttpResponce NotFount()
        {
            HttpResponce responce    = new HttpResponce();
            string       fileContent = File.ReadAllText("./StaticResources/ResouceNotFound.html");

            responce.ContentAsUtf8 = fileContent;
            responce.StatusCode    = Enums.ResponseStatusCode.Not_Found;

            return(responce);
        }
예제 #2
0
        public static HttpResponce InternalServerError()
        {
            HttpResponce responce    = new HttpResponce();
            string       fileContent = File.ReadAllText("./StaticResources/InternalSeverError.html");

            responce.ContentAsUtf8 = fileContent;
            responce.StatusCode    = Enums.ResponseStatusCode.Internal_Server_Error;

            return(responce);
        }