drewzboto / grunt-connect-proxy

Grunt Connect support for proxying API calls during development
MIT License
424 stars 122 forks source link

Added proxy error handling middleware support. #104

Closed olysyuk closed 9 years ago

olysyuk commented 9 years ago

It would be nice to handle proxy errors (show nice page on 404, or pass call to another middleware if proxy fails).

In my case I want to set up connect server, that will route request between frontend grunt serve and backend grunt serve.

Then I can just set up: 1) proxy to frontend, 2) if 404, than it's not a frontend file and backend proxy should handle the request.