raise a ResourceNotFound error instead of an HTTP error if resource not found