Patch: error 502
This commit is contained in:
parent
5f575b8442
commit
69d8d28915
@ -29,24 +29,18 @@ var NotFoundPagePath = ""
|
|||||||
const (
|
const (
|
||||||
NotFound = `<!DOCTYPE html>
|
NotFound = `<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head><title>502 Bad Gateway</title></head>
|
||||||
<title>Not Found</title>
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
width: 35em;
|
|
||||||
margin: 0 auto;
|
|
||||||
font-family: Tahoma, Verdana, Arial, sans-serif;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
<body>
|
||||||
<h1>The page you requested was not found.</h1>
|
<center><h1>502 Bad Gateway</h1></center>
|
||||||
<p>Sorry, the page you are looking for is currently unavailable.<br/>
|
<hr><center>frp</center>
|
||||||
Please try again later.</p>
|
|
||||||
<p>The server is powered by <a href="https://github.com/fatedier/frp">frp</a>.</p>
|
|
||||||
<p><em>Faithfully yours, frp.</em></p>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -74,8 +68,8 @@ func NotFoundResponse() *http.Response {
|
|||||||
|
|
||||||
content := getNotFoundPageContent()
|
content := getNotFoundPageContent()
|
||||||
res := &http.Response{
|
res := &http.Response{
|
||||||
Status: "Not Found",
|
Status: "Bad Gateway",
|
||||||
StatusCode: 404,
|
StatusCode: 502,
|
||||||
Proto: "HTTP/1.1",
|
Proto: "HTTP/1.1",
|
||||||
ProtoMajor: 1,
|
ProtoMajor: 1,
|
||||||
ProtoMinor: 1,
|
ProtoMinor: 1,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user