mirror of
https://github.com/sheumann/NetDisk.git
synced 2025-01-02 17:30:38 +00:00
38 lines
821 B
C
38 lines
821 B
C
#ifndef NETDISKERROR_H
|
|
#define NETDISKERROR_H
|
|
|
|
enum NetDiskError {
|
|
OPERATION_SUCCESSFUL = 0,
|
|
|
|
/* SetURL errors */
|
|
URL_TOO_LONG = 100,
|
|
INVALID_CHARACTER_IN_URL,
|
|
BAD_URL_SYNTAX,
|
|
UNSUPPORTED_URL_SCHEME,
|
|
AUTHENTICATION_NOT_SUPPORTED,
|
|
FRAGMENT_NOT_SUPPORTED,
|
|
INVALID_PORT_NUMBER,
|
|
NO_HOST_SPECIFIED,
|
|
IPV6_NOT_SUPPORTED,
|
|
HOSTNAME_TOO_LONG,
|
|
NAME_LOOKUP_FAILED,
|
|
OUT_OF_MEMORY,
|
|
|
|
/* StartTCPConnection and DoHTTPRequest errors */
|
|
NETWORK_ERROR = 200,
|
|
NO_RESPONSE,
|
|
INVALID_RESPONSE,
|
|
EXCESSIVE_REDIRECTS,
|
|
UNSUPPORTED_RESPONSE,
|
|
UNSUPPORTED_HEADER_VALUE,
|
|
REDIRECT_ERROR,
|
|
NOT_DESIRED_CONTENT,
|
|
DIFFERENT_LENGTH, /* Might be considered successful later */
|
|
|
|
/* File format errors */
|
|
UNSUPPORTED_2IMG_FILE = 300,
|
|
|
|
};
|
|
|
|
#endif
|