updated doc.
updated template to save error instead of just 404 not found.