OP meant "off day" as in a day when you're not at your best, not a day off.
My solution has been to move to more of a supporting role (engineering manager, or architect or similar).
Basically, if you are unavailable (as in not very productive), things still move along and happen, even if a bit suboptimally.