Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to set response status #10

Open
reod opened this issue Feb 1, 2018 · 2 comments
Open

Option to set response status #10

reod opened this issue Feb 1, 2018 · 2 comments

Comments

@reod
Copy link

reod commented Feb 1, 2018

200 OK is not always wanted case.
It could look like:

Usage of ./goStatic:
  (...)
  -status-code int
        Define response status code (default 200)
@PierreZ
Copy link
Owner

PierreZ commented Feb 2, 2018

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.

@reod
Copy link
Author

reod commented Feb 7, 2018

I need to serve simple HTML with information about maintenance mode and status has to be 5XX, because other services (monitoring, etc.) need this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants