HTTP 401 responses returned by Mastodon's inbox controller may
be temporary if, for instance, the requesting user's actor/key json
could not be retrieved in a timely fashion. This changes allow retries
instead of dropping the message entirely.
Also added HTTP 408 as that error is by nature temporary.
While Mastodon doesn't have rate limits on the inbox by default,
it's possible to add that using Mastodon code and
it's also quite likely to occur in other software implementations down the line.
Summary
HTTP 401 responses returned by Mastodon's inbox controller may be temporary if, for instance, the requesting user's actor/key json could not be retrieved in a timely fashion. This changes allow retries instead of dropping the message entirely.
Also added HTTP 408 as that error is by nature temporary.
While Mastodon doesn't have rate limits on the inbox by default, it's possible to add that using Mastodon code and it's also quite likely to occur in other software implementations down the line.