fix bug to return specific error message with NOTFOUND Result