diff options
author | Munyoki Kilyungi | 2024-08-27 11:34:06 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-29 10:42:16 +0300 |
commit | b707cb8c02908c975520f532c0fc09c880bfd029 (patch) | |
tree | e87caa763e775af51b3ef1d50f5d99433c50be48 | |
parent | a0681e15a6c3df598a4cf7a1bb31576f58fe7efc (diff) | |
download | genenetwork3-b707cb8c02908c975520f532c0fc09c880bfd029.tar.gz |
Return the correct status error code for url errors.
* gn3/errors.py (url_server_error): Return a 500 http status code for
URL server errors.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r-- | gn3/errors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/errors.py b/gn3/errors.py index e9056d4..525d703 100644 --- a/gn3/errors.py +++ b/gn3/errors.py @@ -51,7 +51,7 @@ def url_server_error(pnf): return jsonify(add_trace(pnf, { "error": f"URLLib Error no: {pnf.reason.errno}", "error_description": pnf.reason.strerror, - })) + })), 500 def handle_authorisation_error(exc: AuthorisationError): |