mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-15 21:23:19 +00:00
50 lines
717 B
Go
50 lines
717 B
Go
|
package http
|
||
|
|
||
|
var resp400 = &ResponseConfig{
|
||
|
Version: &Version{
|
||
|
Value: "1.1",
|
||
|
},
|
||
|
Status: &Status{
|
||
|
Code: "400",
|
||
|
Reason: "Bad Request",
|
||
|
},
|
||
|
Header: []*Header{
|
||
|
{
|
||
|
Name: "Connection",
|
||
|
Value: []string{"close"},
|
||
|
},
|
||
|
{
|
||
|
Name: "Cache-Control",
|
||
|
Value: []string{"private"},
|
||
|
},
|
||
|
{
|
||
|
Name: "Content-Length",
|
||
|
Value: []string{"0"},
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
|
||
|
var resp404 = &ResponseConfig{
|
||
|
Version: &Version{
|
||
|
Value: "1.1",
|
||
|
},
|
||
|
Status: &Status{
|
||
|
Code: "404",
|
||
|
Reason: "Not Found",
|
||
|
},
|
||
|
Header: []*Header{
|
||
|
{
|
||
|
Name: "Connection",
|
||
|
Value: []string{"close"},
|
||
|
},
|
||
|
{
|
||
|
Name: "Cache-Control",
|
||
|
Value: []string{"private"},
|
||
|
},
|
||
|
{
|
||
|
Name: "Content-Length",
|
||
|
Value: []string{"0"},
|
||
|
},
|
||
|
},
|
||
|
}
|