NHTTPError

Syntax


#include <revolution/nhttp/NHTTPStartup.h>

typedef enum {
    NHTTP_ERROR_SYSTEM = -1,    

    NHTTP_ERROR_NONE = 0,
    NHTTP_ERROR_ALLOC,
    NHTTP_ERROR_TOOMANYREQ,
    NHTTP_ERROR_SOCKET,
    NHTTP_ERROR_DNS,
    NHTTP_ERROR_CONNECT,
    NHTTP_ERROR_BUFFULL,
    NHTTP_ERROR_HTTPPARSE,
    NHTTP_ERROR_CANCELED,
    NHTTP_ERROR_REVOLUTIONSDK,
    NHTTP_ERROR_REVOLUTIONWIFI,
    NHTTP_ERROR_UNKNOWN,
    NHTTP_ERROR_DNS_PROXY,
    NHTTP_ERROR_CONNECT_PROXY,
    NHTTP_ERROR_SSL,
    NHTTP_ERROR_BUSY, 
    NHTTP_ERROR_SSL_ROOTCA,     
    NHTTP_ERROR_SSL_CLIENTCERT, 
 
    NHTTP_ERROR_MAX
} NHTTPError;

Description

Error enumeration type defined by the NHTTP library.
The enumerator values are as follows:

Definitions Value Description
NHTTP_ERROR_SYSTEM -1 Error resulting from an invalid handle.
Returned when the connection handle passed by the argument is invalid.
NHTTP_ERROR_NONE 0 Successful.
NHTTP_ERROR_ALLOC 1 Allocation has failed.

Check the memory allocation and deallocation functions set in NHTTPStartup.
NHTTP_ERROR_TOOMANYREQ 2 Too many requests.
NHTTP_ERROR_SOCKET 3 Socket error.
This error is returned when socket creation fails or when a negative value is returned by the set callback while determining the POST data send size for streaming sends.
NHTTP_ERROR_DNS 4 DNS resolution failed.
This is returned when the requested URL is incorrect or doesn't exist.
Check the requested URL.
NHTTP_ERROR_CONNECT 5 Connection failure.
Returned when communication is blocked after DNS resolution but before connecting to the requested URL's server, or when the connection port number specified by the requested URL is wrong.
NHTTP_ERROR_BUFFULL 6 The receive buffer is full.
NHTTP_ERROR_HTTPPARSE 7 HTTP header parsing failed.
Returned when there is a problem with the HTTP header received from the server.
NHTTP_ERROR_CANCELED 8 The request was canceled.
NHTTP_ERROR_REVOLUTIONSDK 9 NHTTP thread generation failed.

Returned when thread generation fails while running NHTTPStartup.
NHTTP_ERROR_REVOLUTIONWIFI 10 There was a problem when sending or receiving, or when the socket closed.
Returned when communication is blocked during sending, receiving, or termination.
NHTTP_ERROR_UNKNOWN 11 Another request start is required for the currently executing request.
NHTTP_ERROR_DNS_PROXY 12 DNS resolution failed for the proxy server.
Returned when the proxy server configured in the Wii console settings is incorrect or doesn't exist.
Check the proxy server settings in the Wii console.
NHTTP_ERROR_CONNECT_PROXY 13 Connection with the proxy server failed.
Returned when communication is blocked after DNS resolution but before connecting to the proxy server. Also returned when the connection port number, specified by the Wii console setting's proxy server, is wrong.
NHTTP_ERROR_SSL, 14 SSL communications failed.
Returned if connection with a server by SSL communication fails.
NHTTP_ERROR_BUSY 15 Indicates that a request is currently running.
NHTTP_ERROR_SSL_ROOTCA 16 Root CA configuration failed.
NHTTP_ERROR_SSL_CLIENTCERT 17 Client certificate configuration failed.

Revision History

2008/02/01 Initial version.


CONFIDENTIAL