aboutsummaryrefslogtreecommitdiff
path: root/server/src/net/usebox
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-04-18 20:33:56 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-04-18 20:33:56 +0100
commitfbe84bcbb85ddc1cde327faf382ef358e4c328e3 (patch)
tree5957cf05ea847bac8f4763a33c4ebaf896d0ea34 /server/src/net/usebox
parent507d1634503eaf573e668a4e525dc8cebaa567d6 (diff)
downloadspacebeans-fbe84bcbb85ddc1cde327faf382ef358e4c328e3.tar.gz
spacebeans-fbe84bcbb85ddc1cde327faf382ef358e4c328e3.zip
Use 42 status code for CGI errors
Diffstat (limited to 'server/src/net/usebox')
-rw-r--r--server/src/net/usebox/gemini/server/Response.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/net/usebox/gemini/server/Response.scala b/server/src/net/usebox/gemini/server/Response.scala
index 1c2071f..82fa95d 100644
--- a/server/src/net/usebox/gemini/server/Response.scala
+++ b/server/src/net/usebox/gemini/server/Response.scala
@@ -137,18 +137,18 @@ case class Cgi(
(status.toInt, meta, body)
case _ =>
logger.warn(s"$scriptName: invalid CGI response")
- respError(40, "Invalid response from CGI")
+ respError(42, "Invalid response from CGI")
}
case Right(exit) =>
logger.warn(s"$scriptName: failed to execute CGI (exit: $exit)")
- respError(50, s"Error executing CGI")
+ respError(42, s"Error executing CGI")
case Left(error) =>
logger.warn(
s"$scriptName: failed to execute CGI (${error.getMessage()})"
)
- respError(50, s"Error executing CGI")
+ respError(42, s"Error executing CGI")
}
}