return ns_restunbadrequest instead of not found