connection pool reference (#616)

* add link in index to external jwt
* change pgrst errors location for better reading
This commit is contained in:
Steve Chavez
2023-05-07 10:25:12 -05:00
committed by GitHub
parent 082e9b14e9
commit 36300da16d
6 changed files with 124 additions and 56 deletions
+24 -23
View File
@@ -28,29 +28,6 @@ PostgREST will forward errors coming from PostgreSQL. For instance, when queryin
"message": "relation \"api.nonexistent_table\" does not exist"
}
Errors from PostgREST
---------------------
Errors that come from PostgREST itself maintain the same structure. But differ in the ``PGRST`` prefix in the ``code`` field. For instance, when querying a function that does not exist in the :doc:`schema cache <schema_cache>`:
.. code-block:: http
POST /rpc/nonexistent_function HTTP/1.1
.. code-block:: http
HTTP/1.1 404 Not Found
Content-Type: application/json; charset=utf-8
.. code-block:: json
{
"hint": "...",
"details": null
"code": "PGRST202",
"message": "Could not find the api.nonexistent_function() function in the schema cache"
}
.. _status_codes:
HTTP Status Codes
@@ -119,6 +96,30 @@ PostgREST translates `PostgreSQL error codes <https://www.postgresql.org/docs/cu
| other | 400 | |
+--------------------------+-------------------------+---------------------------------+
Errors from PostgREST
---------------------
Errors that come from PostgREST itself maintain the same structure. But differ in the ``PGRST`` prefix in the ``code`` field. For instance, when querying a function that does not exist in the :doc:`schema cache <schema_cache>`:
.. code-block:: http
POST /rpc/nonexistent_function HTTP/1.1
.. code-block:: http
HTTP/1.1 404 Not Found
Content-Type: application/json; charset=utf-8
.. code-block:: json
{
"hint": "...",
"details": null
"code": "PGRST202",
"message": "Could not find the api.nonexistent_function() function in the schema cache"
}
.. _pgrst_errors:
PostgREST Error Codes