better error message for not found resource