http_err.c

来自「web_based.rar」· C语言 代码 · 共 48 行

C
48
字号
/*----------------------------------------------------------------------------
 *      R T L  -  T C P N E T
 *----------------------------------------------------------------------------
 *      Name:    HTTP_ERR.C
 *      Purpose: HTTP Server Error Page Definitions
 *      Rev.:    V3.20
 *----------------------------------------------------------------------------
 *      This code is part of the RealView Run-Time Library.
 *      Copyright (c) 2004-2008 KEIL - An ARM Company. All rights reserved.
 *---------------------------------------------------------------------------*/

#include <RTL.h>

/* Note: Keep HTTP Error pages small sized. */

/* HTTP Error 404 - File not Found */
const char http_err_404[] = {
        "<head><title>DC102 Embedded WEB Server</title></head>"
        "<body>"
        "<h2>HTTP 1.0 404 Error. File Not Found</h2>"
        "The requested URL was not found on this server."
        "<hr><br>"
        "<i>DC102 Embedded WEB Server V1.00, 2008<br>"
        "<a href=http://www.cms.com> www.cms.com</a>"
        " - Access and Time Attendance Systems</i>"
        "</body>"};

/* HTTP Error 401 - Unauthorized access. */
const char http_err_401[] = {
        "<head><title>DC102 Embedded WEB Server</title></head>"
        "<body>"
        "<h2>HTTP 1.0 401 Error. Unauthorized Access</h2>"
        "You are not authorized to access this server."
        "<hr><br>"
        "<i>DC102 Embedded WEB Server V1.00, 2008<br>"
        "<a href=http://www.cms.com> www.cms.com</a>"
        " - Access and Time Attendance Systems</i>"
        "</body>"};

/* Page size definitions. */
const U32 sizeof_http_err_404 = sizeof (http_err_404);
const U32 sizeof_http_err_401 = sizeof (http_err_401);


/*----------------------------------------------------------------------------
 * end of file
 *---------------------------------------------------------------------------*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?