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); }
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); }