Commit d9699327 authored by Thomas Milius's avatar Thomas Milius
Browse files

Upload New File Httperror (errors extracted from module.c as also required by start.c)

parent 9d5750c1
/* Copyright 1998 Acorn Computers Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* HTTP (h.Httperror)
*
*/
/*************************************************************/
/* So the real error number that we have to return is: */
/*************************************************************/
#define HTTP_ERROR_NUM (ERROR_BASE+HTTP_OFFSET)
/*************************************************************/
/* The error message definitions */
/*************************************************************/
typedef enum {
HTTP_HOST_NOT_FOUND = HTTP_ERROR_NUM + 0, /* DNS lookup failed */
HTTP_HOST_CONNECT_ERROR = HTTP_ERROR_NUM + 1, /* connect() failed */
HTTP_DATA_READ_ERROR = HTTP_ERROR_NUM + 2, /* unexpected read error on socket */
HTTP_GENERAL_ERROR = HTTP_ERROR_NUM + 3, /* Misc. - not helpful */
HTTP_BAD_SESSION_ERROR = HTTP_ERROR_NUM + 4, /* Failed to locate session in session table */
HTTP_CONNECTION_FAILED = HTTP_ERROR_NUM + 5, /* Failed to establish connection */
HTTP_METHOD_UNSUPPORTED = HTTP_ERROR_NUM + 6, /* Unknown method in R2 */
HTTP_METHOD_INIT_ERR = HTTP_ERROR_NUM + 7, /* Failed to start a fetch completely */
HTTP_BAD_URL_PARSE = HTTP_ERROR_NUM + 8, /* Unable to parse URL (URL module too old?) */
HTTP_PROXY_NOT_FOUND = HTTP_ERROR_NUM + 9, /* Unable to contact the proxy */
HTTP_NO_SECURITY = HTTP_ERROR_NUM + 10, /* No SSL support present */
HTTP_BAD_PARAMETER = HTTP_ERROR_NUM + 11, /* Invalid parameter(s) passed to SWI */
HTTP_NO_RESOURCES = HTTP_ERROR_NUM + 12 /* Not enough internal resources to handle SWI */
} http_internal_error_codes;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment