about summary refs log tree commit diff stats
path: root/src/loader/connecterror.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-20 20:04:14 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-20 20:06:45 +0200
commit2ab1e53b4bc15af3319994fdb25bb739b4b8e6db (patch)
tree22e32f721c783f3ee934498ec95b58f5a117ac67 /src/loader/connecterror.nim
parent60dc37269cd2dc8cdf23d9f77680f6af9490032f (diff)
downloadchawan-2ab1e53b4bc15af3319994fdb25bb739b4b8e6db.tar.gz
loader: better error handling
we no longer crash on broken codecs. yay
Diffstat (limited to 'src/loader/connecterror.nim')
-rw-r--r--src/loader/connecterror.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/loader/connecterror.nim b/src/loader/connecterror.nim
index 08f7b436..c3099b0f 100644
--- a/src/loader/connecterror.nim
+++ b/src/loader/connecterror.nim
@@ -1,4 +1,5 @@
 type ConnectErrorCode* = enum
+  ERROR_FAILED_TO_REDIRECT = (-17, "failed to redirect request body")
   ERROR_URL_NOT_IN_CACHE = (-16, "URL was not found in the cache")
   ERROR_FILE_NOT_IN_CACHE = (-15, "file was not found in the cache")
   ERROR_FAILED_TO_EXECUTE_CGI_SCRIPT = (-14, "failed to execute CGI script")