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.