Changed function to `not_found`.

Instead of using funtion `error!` the function `not_found!` is used to return 404 error. Adjusted documentation accordingly.