fix: fix wrong 503 Service Unavailable on pg error 53400

This commit is contained in:
Taimoor Zaeem
2024-05-06 07:54:11 -05:00
committed by Steve Chavez
parent cabe744f01
commit 21bc48ad9a
5 changed files with 19 additions and 2 deletions
+1
View File
@@ -489,6 +489,7 @@ pgErrorStatus authed (SQL.SessionUsageError (SQL.QueryError _ _ (SQL.ResultError
'3':'9':_ -> HTTP.status500 -- external routine invocation
'3':'B':_ -> HTTP.status500 -- savepoint exception
'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':'5':_ -> HTTP.status500 -- obj not on prereq state