fix: fix incorrect 413 error on pg 54* errors

This commit is contained in:
Taimoor Zaeem
2024-05-20 18:59:33 -05:00
committed by Steve Chavez
parent 11c9e8dac9
commit 5cc32c7f87
5 changed files with 32 additions and 2 deletions
+1 -1
View File
@@ -491,7 +491,7 @@ pgErrorStatus authed (SQL.SessionUsageError (SQL.QueryError _ _ (SQL.ResultError
'4':'0':_ -> HTTP.status500 -- tx rollback
"53400" -> HTTP.status500 -- config limit exceeded
'5':'3':_ -> HTTP.status503 -- insufficient resources
'5':'4':_ -> HTTP.status413 -- too complex
'5':'4':_ -> HTTP.status500 -- too complex
'5':'5':_ -> HTTP.status500 -- obj not on prereq state
"57P01" -> HTTP.status503 -- terminating connection due to administrator command
'5':'7':_ -> HTTP.status500 -- operator intervention