shrub/mar/recoverable-error.hoon
2016-12-01 15:29:32 -08:00

31 lines
555 B
Plaintext

:: Possibly non-fatal http error
::
:::: /hoon/recoverable-error/mar
::
/- recoverable-error
::
:::: ~fyr
::
=, ^eyre
=, js:eyre
=, format
|_ recoverable-error
++ grab
|%
++ noun recoverable-error
++ httr
|= a/^httr ^- recoverable-error
~! a
?+ p.a ~|(non-recoverable+p.a !!)
$429 :+ p.a %rate-limit
%. %x-rate-limit-reset
;~ biff
~(get by (malt q.a))
poja
ni:dejs-soft
==
==
--
++ grow |% ++ tank >[+<]< --
--