mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-06-25 09:33:36 +02:00
「✨」 feat: added error page implementation
This commit is contained in:
@ -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 */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user