softius / php-cross-domain-proxy

PHP Proxy for Cross Domain Requests
GNU General Public License v3.0
269 stars 141 forks source link

Error management improvement (using HTTP status code) #29

Open GBO opened 7 years ago

GBO commented 7 years ago

Improvement to enable HTTP error code when requesting the pages via this proxy.

This solution could be improve to manage specifically all CURL error code (as in penpendede try), but I'm not sure we can translate all CURL error code to a specific HTTP error code. This solution is a quite simple translation :

I'm using this version for a simple supervision tool based on ajax requests on several development environments.