mirror of
https://github.com/YunoHost/check-http.git
synced 2024-09-03 19:56:42 +02:00
[mod] custom code when test failure is due to a known error
This commit is contained in:
parent
cbe205e587
commit
7d868ec5dd
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ async def check_http(request):
|
|||
"status": "error",
|
||||
"code": "error_http_check_connection_error",
|
||||
"content": "connection error, could not connect to the requested domain, it's very likely unreachable",
|
||||
}, status=400)
|
||||
}, status=418)
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
|
Loading…
Reference in a new issue