Esempio n. 1
0
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3.0 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You can receive a copy of the GNU Lesser General Public License from 
 * http://www.gnu.org/
 */

/** 
 * @file 500.c
 * @brief HTTPD library
 * @author Robinson Mittmann <*****@*****.**>
 */ 

#include "httpd-i.h"

static const char http_msg_500[] = HTTPD_MSG(500, "Internal Server Error", "");

int http_500(struct httpctl * __ctl)
{
	return tcp_send(__ctl->tp, http_msg_500, sizeof(http_msg_500) - 1,
					TCP_SEND_NOCOPY);
}

Esempio n. 2
0
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3.0 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You can receive a copy of the GNU Lesser General Public License from 
 * http://www.gnu.org/
 */

/** 
 * @file 413.c
 * @brief HTTPD library
 * @author Robinson Mittmann <*****@*****.**>
 */ 

#include "httpd-i.h"

static const char http_msg_413[] = HTTPD_MSG(413, 
	"Request Entity Too Large", "");

int httpd_413(struct tcp_pcb * __tp) 
{
	return tcp_send(__tp, http_msg_413, sizeof(http_msg_413) - 1, 
					TCP_SEND_NOCOPY);
}

Esempio n. 3
0
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3.0 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You can receive a copy of the GNU Lesser General Public License from 
 * http://www.gnu.org/
 */

/** 
 * @file 410.c
 * @brief HTTPD library
 * @author Robinson Mittmann <*****@*****.**>
 */ 

#include "httpd-i.h"

static const char http_msg_410[] = HTTPD_MSG(410, "Gone", "");

int httpd_410(struct tcp_pcb * __tp) 
{
	return tcp_send(__tp, http_msg_410, sizeof(http_msg_410) - 1, 
					TCP_SEND_NOCOPY);
}

Esempio n. 4
0
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3.0 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You can receive a copy of the GNU Lesser General Public License from 
 * http://www.gnu.org/
 */

/** 
 * @file 503.c
 * @brief HTTPD library
 * @author Robinson Mittmann <*****@*****.**>
 */ 

#include "httpd-i.h"

static const char http_msg_503[] = HTTPD_MSG(503, "Service Unavailable", "");

int http_503(struct httpctl * __ctl)
{
	return tcp_send(__ctl->tp, http_msg_503, sizeof(http_msg_503) - 1,
					TCP_SEND_NOCOPY);
}

Esempio n. 5
0
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3.0 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You can receive a copy of the GNU Lesser General Public License from 
 * http://www.gnu.org/
 */

/** 
 * @file 409.c
 * @brief HTTPD library
 * @author Robinson Mittmann <*****@*****.**>
 */ 

#include "httpd-i.h"

static const char http_msg_409[] = HTTPD_MSG(409, "Confilct", "");

int http_409(struct httpctl * __ctl)
{
	return tcp_send(__ctl->tp, http_msg_409, sizeof(http_msg_409) - 1,
					TCP_SEND_NOCOPY);
}

Esempio n. 6
0
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3.0 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You can receive a copy of the GNU Lesser General Public License from 
 * http://www.gnu.org/
 */

/** 
 * @file 411.c
 * @brief HTTPD library
 * @author Robinson Mittmann <*****@*****.**>
 */ 

#include "httpd-i.h"

static const char http_msg_411[] = HTTPD_MSG(411, "Length Required", "");

int httpd_411(struct tcp_pcb * __tp) 
{
	return tcp_send(__tp, http_msg_411, sizeof(http_msg_411) - 1, 
					TCP_SEND_NOCOPY);
}