status should set http status, not send error