」 feat: added error page implementation

This commit is contained in:
2025-05-28 11:46:20 +02:00
parent 570ade97b4
commit 887b2c5446
10 changed files with 90 additions and 57 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/20 09:28:27 by adjoly #+# #+# */
/* Updated: 2025/04/29 17:28:36 by adjoly ### ########.fr */
/* Updated: 2025/05/28 11:32:32 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */

View File

@ -1,3 +1,4 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
@ -6,7 +7,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/16 17:51:46 by mmoussou #+# #+# */
/* Updated: 2025/04/30 14:30:00 by mmoussou ### ########.fr */
/* Updated: 2025/05/28 11:26:01 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -22,8 +23,8 @@ namespace http {
class Errors {
public:
static std::string getResponseBody(int error_code);
static void setEntries(const std::map<int, std::string>);
static std::string getResponseBody(int error_code, std::string err_file);
// static void setEntries(const std::map<int, std::string>);
static std::map<int, std::string> message;

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/30 09:30:15 by adjoly #+# #+# */
/* Updated: 2025/05/28 09:55:33 by adjoly ### ########.fr */
/* Updated: 2025/05/28 11:29:38 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -57,7 +57,7 @@ class Post : public ARequest {
class Delete : public ARequest {
public:
Delete(void) {}
Delete(std::string &data);
Delete(std::string &data, config::Server *srv);
void parse(std::string const &data);