Add Errors reference (#430)

* Adds PostgREST' error codes 

* Move error information to a dedicated reference page

* Organize errors into tables
This commit is contained in:
Laurence Isla
2022-03-14 21:03:01 +01:00
committed by GitHub
parent 1489fc84b8
commit 8f98948078
9 changed files with 356 additions and 77 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ Response is 401 Unauthorized:
"hint": null,
"details": null,
"code": "42501",
"message": "permission denied for relation todos"
"message": "permission denied for table todos"
}
There we have it, a basic API on top of the database! In the next tutorials we will see how to extend the example with more sophisticated user access controls, and more tables and queries.
+6 -1
View File
@@ -175,7 +175,12 @@ After expiration, the API returns HTTP 401 Unauthorized:
.. code-block:: json
{"message":"JWT expired"}
{
"hint": null,
"details": null,
"code": "PGRST301",
"message": "JWT expired"
}
Bonus Topic: Immediate Revocation
---------------------------------