Incorrect 413 Request Entity Too Large
on pg statement_too_complex
#3255
Labels
413 Request Entity Too Large
on pg statement_too_complex
#3255
Problem
Having an infinite loop on insert:
We reply with:
Which is incorrect. In general because a 4xx is a client side error.
This is done on:
postgrest/src/PostgREST/Error.hs
Line 479 in 1a141c1
Solution
Reply with a 500 status instead for every
54xxx
.It's tempting to turn
54xxx
into a 508 Loop Detected but maybe that's not correct for every case.The text was updated successfully, but these errors were encountered: