Use http_response_code() to check HTTP status code, when available.

Resolves WebSharks/quick-cache#175

@jaswsinc Quick code review, please?