No longer use php 5.4 http_response_code.
The use of this function created different code paths not behaving exactly the same.