Set http status in handle_error
Set http status in handle_error

This patch sets appropriate http status when JS is on and error occurs,
we need this for calling jQuery error callbacks.

aeolusproject/conductor,aeolusproject/conductor,aeolusproject/conductor,aeolusproject/conductor