{
  "id": "a6ee9f24ba2d3043479c6415",
  "source": "http",
  "type": "go-function",
  "title": "http.func Error ¶",
  "content": "# http.func Error ¶\n\n```\nfunc Error(w ResponseWriter, error string, code int)\n```\n\nError replies to the request with the specified error message and HTTP code.\nIt does not otherwise end the request; the caller should ensure no further\nwrites are done to w.\nThe error message should be plain text.",
  "url": "https://pkg.go.dev/http#func Error ¶",
  "metadata": {
    "examples": "null",
    "import_path": "Standard library/net/http",
    "kind": "function",
    "package": "http",
    "signature": "func Error(w ResponseWriter, error string, code int)",
    "symbol": "func Error ¶"
  },
  "hash": "53edeac9e466955b0d5e71b80793c059b7452ead3a8ca466e801530dc8f92edc",
  "timestamp": "2026-02-19T12:17:17.237474404+01:00"
}