srd: properly return status code