Skip to content

Commit

Permalink
docs: fix http status for PGRST121 error
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenceisla committed Apr 24, 2024
1 parent 359a145 commit 85a4e35
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/references/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ Related to the HTTP request elements.
| | | ``is.null`` or ``not.is.null`` :ref:`operators <operators>`.|
| PGRST120 | | |
+---------------+-------------+-------------------------------------------------------------+
| .. _pgrst121: | 400 | PostgREST can't parse the JSON objects in RAISE |
| .. _pgrst121: | 500 | PostgREST can't parse the JSON objects in RAISE |
| | | ``PGRST`` error. See :ref:`raise headers <raise_headers>`. |
| PGRST121 | | |
+---------------+-------------+-------------------------------------------------------------+
Expand Down Expand Up @@ -425,5 +425,3 @@ For non standard HTTP status, you can optionally add ``status_text`` to describe
detail = '{"status":419,"status_text":"Page Expired","headers":{"X-Powered-By":"Nerd Rage"}}';
If PostgREST can't parse the JSON objects ``message`` and ``detail``, it will throw a ``PGRST121`` error. See :ref:`Errors from PostgREST<pgrst1**>`.


0 comments on commit 85a4e35

Please sign in to comment.