File: http_error_codes.c

package info (click to toggle)
s3d 0.2.2.1-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,356 kB
  • sloc: ansic: 21,128; python: 488; perl: 98; makefile: 31; sh: 29
file content (22 lines) | stat: -rw-r--r-- 931 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: GPL-2.0-or-later
/* SPDX-FileCopyrightText: 2001  Lyle Hanson <lhanson@cs.nmu.edu>
 */

#include "http_error_codes.h"

/* Note that '%d' cannot be escaped at this time */
const char *http_errlist[] = {
	"Success",          /* HF_SUCCESS  */
	"Internal Error. What the hell?!",    /* HF_METAERROR  */
	"Got NULL url",         /* HF_NULLURL  */
	"Timed out, no metadata for %d seconds",  /* HF_HEADTIMEOUT  */
	"Timed out, no data for %d seconds",   /* HF_DATATIMEOUT */
	"Couldn't find return code in HTTP response", /* HF_FRETURNCODE */
	"Couldn't convert return code in HTTP response",/* HF_CRETURNCODE */
	"Request returned a status code of %d",   /* HF_STATUSCODE */
	"Couldn't convert Content-Length to integer" /* HF_CONTENTLEN */
};

/* Used to copy in messages from http_errlist[] and replace %d's with
 * the value of errorInt.  Then we can pass the pointer to THIS */
char convertedError[128];