MustGetHTTP500ErrorPage returns the content of HTML file for HTTP 500 error
()
| 37 | |
| 38 | // MustGetHTTP500ErrorPage returns the content of HTML file for HTTP 500 error |
| 39 | func MustGetHTTP500ErrorPage() []byte { |
| 40 | ret, err := staticFiles.ReadFile("static/500.html") |
| 41 | if err != nil { |
| 42 | panic(errors.Wrap(err, "reading HTML file for 500 HTTP error")) |
| 43 | } |
| 44 | |
| 45 | return ret |
| 46 | } |