PHP: improve error message

1. Pass along any HTTP status codes from the proxied request.
2. For curl errors (like unreachable host), pass along the curl errors.

Related to #14 and #44.