Fixed response code

For some reason the function http_response_code returns FALSE in some cases (even though the PHP documentation says otherwise, so yeah it's PHP bug). I've experienced it when I was writing some functional tests with Codeception but I can't reproduce it when testing just Nette. Therefore I didn't write a test.