Skip to content

Commit

Permalink
Merge pull request #119 from k-r-g/errorHttpStatus500
Browse files Browse the repository at this point in the history
Set HTTP status 500 when site is unavailable
  • Loading branch information
msmith-techempower committed Oct 17, 2022
2 parents e5d408f + 572b513 commit d7f7a2c
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -1139,6 +1139,7 @@ protected void handleRequest(Context context)
private void handleError(Context context, String error) throws IOException
{
context.setContentType("text/html");
context.setStatus(500);
final Writer writer = context.getWriter();
writer.write("<html>");
writer.write("<head><title>Temporarily Unavailable</title>");
Expand Down

0 comments on commit d7f7a2c

Please sign in to comment.