Reorganize error groups

* Grouped Hasql errors into one error and renamed it to InternalError
* Move all the General errors to ApiRequest errors
This commit is contained in:
Laurence Isla
2022-05-02 21:16:31 -05:00
committed by GitHub
parent 980f27a6d1
commit a2349d90c0
6 changed files with 76 additions and 104 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ spec = do
[json|
{"hint": null,
"details": null,
"code": "PGRST506",
"code": "PGRST117",
"message":"Unsupported HTTP verb: CONNECT"}|]
{ matchStatus = 405 }
@@ -39,7 +39,7 @@ spec = do
[json|
{"hint": null,
"details": null,
"code": "PGRST506",
"code": "PGRST117",
"message":"Unsupported HTTP verb: TRACE"}|]
{ matchStatus = 405 }
@@ -51,6 +51,6 @@ spec = do
[json|
{"hint": null,
"details": null,
"code": "PGRST506",
"code": "PGRST117",
"message":"Unsupported HTTP verb: OTHER"}|]
{ matchStatus = 405 }