0x676e67/vproxy

http proxy must return proper response status

deba12 opened this issue · 3 comments

Http proxy must return proper response codes when unable to authorize/authenticate/fulfill the request.
Optionally string with proper error information

When the ipaddress is not in the whitelist and username/password are missing

403 Forbidden

When the username/password are wrong

407 Proxy Authentication Required

When unable to complete the request (missing dns name, or other errors)

500 Internal Server Error

When unable to connect to the remote server

502 Bad Gateway

When connection times out

504 Gateway Timeout

I think you can learn rust for PR, I don't have so much time to deal with such detailed request specifications

Can you give me just one example how to return status code, then i will do both socks and http proxies. I have RustRover installed, but still need a little bit guidance how to complete my task.

Thanks