---
name: "http_strerror"
section: "3"
platform: "linux"
package: "libhttpfetcher-dev"
version: "1.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/http_strerror"
---

# http\_strerror(3)

Returns a pointer to the current error description message.

## NAME

**http\_strerror** - Returns a pointer to the current error description message.

## SYNOPSIS

**#include \<http\_fetcher.h\>**\

**const char \*http\_strerror();**\

## DESCRIPTION

**Returns a pointer to the current error description message regarding the most recent error encountered within an HTTP Fetcher call.**

**Any HTTP Fetcher function that returns -1 can be**\
 **investigated by using** *http\_strerror*.

The message pointed to is only guaranteed to be valid until the next call to **http\_strerror**, so if you need to preserve the message you should make a copy of it.

## RETURN VALUE

Returns a pointer to a descriptive error message.

## SEE ALSO

 [**http\_perror**(3)](/http_perror/3.md)
