TRIP Routing Daemon
TRIP (RFC 3219) Location Server Implementation
Loading...
Searching...
No Matches
http_status.h
Go to the documentation of this file.
1
/*
2
3
trip: Modern TRIP LS implementation
4
Copyright (C) 2026 arf20 (Ángel Ruiz Fernandez)
5
6
This program is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <https://www.gnu.org/licenses/>.
18
19
*/
20
24
25
#ifndef _HTTP_STATUS_H
26
#define _HTTP_STATUS_H
27
28
/* headers and body expected */
29
#define STATUS_200 "HTTP/1.1 200 OK\r\n"
30
/* complete responses */
31
#define STATUS_404 "HTTP/1.1 404 Not Found\r\nContent-Length: 0\r\n"
32
#define STATUS_413 "HTTP/1.1 413 Content Too Large\r\nContent-Length: 0\r\n"
33
#define STATUS_422 "HTTP/1.1 422 Unprocessable Content\r\nContent-Length: 0\r\n"
34
#define STATUS_505 "HTTP/1.1 505 HTTP Version Not Supported\r\nContent-Length: 0\r\n"
35
36
#endif
/* _HTTP_STATUS_H */
37
src
api
http_status.h
Generated by
1.16.1