make sure $code is valid if extracted from http_response_code()

When the response code is not set, the function "http_response_code" will return false.

If this is the case we make sure 200 is set as a default.
Merge pull request #5 from stijink/master

make sure $code is valid if extracted from http_response_code()