From d5a4c5609e7e4e0a5226d9e9f4e7794afe95d621 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Sun, 19 May 2024 19:38:51 -0500 Subject: [PATCH] refactor: greppable 57P01 error code --- src/PostgREST/Error.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PostgREST/Error.hs b/src/PostgREST/Error.hs index 28df23a07..5036baf3e 100644 --- a/src/PostgREST/Error.hs +++ b/src/PostgREST/Error.hs @@ -493,7 +493,7 @@ pgErrorStatus authed (SQL.SessionUsageError (SQL.QueryError _ _ (SQL.ResultError '5':'3':_ -> HTTP.status503 -- insufficient resources '5':'4':_ -> HTTP.status413 -- too complex '5':'5':_ -> HTTP.status500 -- obj not on prereq state - '5':'7':'P':'0':'1':_ -> HTTP.status503 -- terminating connection due to administrator command + "57P01" -> HTTP.status503 -- terminating connection due to administrator command '5':'7':_ -> HTTP.status500 -- operator intervention '5':'8':_ -> HTTP.status500 -- system error 'F':'0':_ -> HTTP.status500 -- conf file error