aboutsummaryrefslogtreecommitdiff
path: root/server/test/src/handlers/GeminiHandlerSpec.scala
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/test/src/handlers/GeminiHandlerSpec.scala
parent507d1634503eaf573e668a4e525dc8cebaa567d6 (diff)
downloadspacebeans-fbe84bcbb85ddc1cde327faf382ef358e4c328e3.tar.gz
spacebeans-fbe84bcbb85ddc1cde327faf382ef358e4c328e3.zip
Use 42 status code for CGI errors
Diffstat (limited to 'server/test/src/handlers/GeminiHandlerSpec.scala')
-rw-r--r--server/test/src/handlers/GeminiHandlerSpec.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/test/src/handlers/GeminiHandlerSpec.scala b/server/test/src/handlers/GeminiHandlerSpec.scala
index f3545a0..f6da826 100644
--- a/server/test/src/handlers/GeminiHandlerSpec.scala
+++ b/server/test/src/handlers/GeminiHandlerSpec.scala
@@ -403,7 +403,7 @@ class GeminiHandlerSpec extends AnyFlatSpec with Matchers {
.asInstanceOf[Cgi]
val meta = "Error executing CGI"
- bad.status should be(50)
+ bad.status should be(42)
bad.meta should be(meta)
bad.body should include(meta)
}
@@ -414,7 +414,7 @@ class GeminiHandlerSpec extends AnyFlatSpec with Matchers {
.asInstanceOf[Cgi]
val meta = "Error executing CGI"
- bad.status should be(50)
+ bad.status should be(42)
bad.meta should be(meta)
bad.body should include(meta)
}
@@ -425,7 +425,7 @@ class GeminiHandlerSpec extends AnyFlatSpec with Matchers {
.asInstanceOf[Cgi]
val meta = "Invalid response from CGI"
- bad.status should be(40)
+ bad.status should be(42)
bad.meta should be(meta)
bad.body should include(meta)
}