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.