first commit: echo server

This commit is contained in:
Antonio Cossari
2026-09-07 00:45:35 +02:00
commit b15ce130f9
47 changed files with 2614 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* HttpStatus.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: acossari <acossari@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/08/20 19:29:20 by acossari #+# #+# */
/* Updated: 2026/08/21 19:32:48 by acossari ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
namespace webserv {
enum class HttpStatus {
// Success
Ok = 200,
Created = 201,
NoContent = 204,
// Redirection
MovedPermanently = 301,
Found = 302,
SeeOther = 303,
TemporaryRedirect = 307,
PermanentRedirect = 308,
// Client errors
BadRequest = 400,
Forbidden = 403,
NotFound = 404,
MethodNotAllowed = 405,
RequestTimeout = 408,
LengthRequired = 411,
ContentTooLarge = 413,
UriTooLong = 414,
RequestHeaderFieldsTooLarge = 431,
// Server errors
InternalServerError = 500,
NotImplemented = 501,
BadGateway = 502,
ServiceUnavailable = 503,
GatewayTimeout = 504,
HttpVersionNotSupported = 505,
};
} // namespace webserv