On output, consider HTTP status 405 (not allowed) as a fatal error.

This commit is contained in:
default 2023-10-06 17:33:44 +02:00
parent 1cb202d757
commit eb04c8e4f2

View file

@ -1942,7 +1942,7 @@ void process_queue_item(xs_dict *q_item)
retries++;
/* error sending; requeue? */
if (status == 400 || status == 404 || status == 410 || status < 0)
if (status == 400 || status == 404 || status == 405 || status == 410 || status < 0)
/* explicit error: discard */
srv_log(xs_fmt("output message: fatal error %s %d", inbox, status));
else