Following the [guide here](https://github.com/Geal/nom/blob/main/doc/error_management.md), improve the error handling of the resource path parser in service core.