Return 500 only if proxying exception with code 2xx

If other logical exception happens, proxy should still return the
related status, e.g. deleting a non-existed job. Only proxying exception
with code 2xx may cause problem.
Merge pull request #324 from depay/master

Return 500 only if proxying exception with code 2xx