goStatic
goStatic copied to clipboard
Option to set response status
200 OK is not always wanted case. It could look like:
Usage of ./goStatic:
(...)
-status-code int
Define response status code (default 200)
I'm curious about your need to have 2XX responses status codes. Are you serving files? From what I remember, serving files that exists should answer 200.
I need to serve simple HTML with information about maintenance mode and status has to be 5XX, because other services (monitoring, etc.) need this.