Q re <https://docs.lucee.org/reference/tags/http.h...
# lucee
a
Q re https://docs.lucee.org/reference/tags/http.html#attribute-throwonerror It says: • a http response status code which isn't between 200 and 299 But only 400-599 are errors. 1xx and 3xx aren't errors. It should not throw an exception unless the response indicates some sort of client or server error. CF, for example, correctly does not throw an exception on a 307. Lucee does. It should not. Repro: https://trycf.com/gist/1b6c2635099d2dd1d322f3bc20e035df/lucee5?theme=monokai ---- Also seems to me that - unlike the docs that say "The default is YES." - that the default is actually false. No exception is thrown unless one actively passes
throwonerror="true"
. CF's documented behaviour is false by default, so am guessing this is just a docs bug. (repro: https://trycf.com/gist/a49bfc66675f5eb2bd26cd603ed53dfd/lucee6-beta?theme=monokai) @foundeo cfdocs also claims the default is
true
when it's
false
.