Honor returned status code for HEAD requests

I came across this while attempting HEAD requests with apigility.  I found that HEAD requests will always return 200 OK even when the resource is not found.

After further inspection, this solution is a bit naive, as it doesn't copy headers and other information from the `$headResult` into the `$response`.