500 OK
This commit is contained in:
parent
de30241e2c
commit
23a9215289
1 changed files with 4 additions and 3 deletions
|
@ -198,7 +198,8 @@ class TileServer:
|
|||
text = f'last successful cache package check was {time.time() - last_check}s ago.'.encode('utf-8')
|
||||
else:
|
||||
text = b'last successful cache package check is unknown'
|
||||
start_response(('500' if error else '200') + ' OK', [self.get_date_header(),
|
||||
start_response(('500 Internal Server Error' if error else '200 OK'),
|
||||
[self.get_date_header(),
|
||||
('Content-Type', 'text/plain'),
|
||||
('Content-Length', str(len(text)))])
|
||||
return [text]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue