This either involves reading request data directly or using a tiny Rack backend in parallel with the main backend and terminating it when the main backend is up.
See https://mail.google.com/mail/u/0/#label/_+Open+Source%2FHeroku/13bd7e35e149b907.
The response should be a 204 by default probably. See http://stackoverflow.com/questions/9794696/best-http-status-code-in-rest-api-for-not-ready-yet-try-again-later.