Added error response if entity wasn't found