Propagate HttpStatusException from REST

Looks like a bug: throwing HttpStatusException in REST handlers resulted in 500 code all the time.