|
Premature end of response header probably is caused by crashed ruby process, which did not send back the response header or just half of it.
For 404 -> 503 problem, I don't know why it happens, maybe something wrong with that the way a routing error was handled in your application. Create a test Rails application and give it try.
|