github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/transport/internet/headers/http/resp.go (about) 1 package http 2 3 var resp400 = &ResponseConfig{ 4 Version: &Version{ 5 Value: "1.1", 6 }, 7 Status: &Status{ 8 Code: "400", 9 Reason: "Bad Request", 10 }, 11 Header: []*Header{ 12 { 13 Name: "Connection", 14 Value: []string{"close"}, 15 }, 16 { 17 Name: "Cache-Control", 18 Value: []string{"private"}, 19 }, 20 { 21 Name: "Content-Length", 22 Value: []string{"0"}, 23 }, 24 }, 25 } 26 27 var resp404 = &ResponseConfig{ 28 Version: &Version{ 29 Value: "1.1", 30 }, 31 Status: &Status{ 32 Code: "404", 33 Reason: "Not Found", 34 }, 35 Header: []*Header{ 36 { 37 Name: "Connection", 38 Value: []string{"close"}, 39 }, 40 { 41 Name: "Cache-Control", 42 Value: []string{"private"}, 43 }, 44 { 45 Name: "Content-Length", 46 Value: []string{"0"}, 47 }, 48 }, 49 }