-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherreur.php
91 lines (90 loc) · 1.9 KB
/
erreur.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
$titre = case;
switch($_GET['erreur'])
{
case '400':
echo '
<?php include('include/head.php'); ?>
<p>Échec de l\'analyse HTTP</p>
<?php include('include/footer.php');
?>';
break;
case '401':
echo '
<?php include('include/head.php'); ?>
Le pseudo ou le mot de passe n\'est pas correct !
include('include/footer.php');
?>';
break;
case '402':
echo '
<?php include('include/head.php'); ?>
Le client doit reformuler sa demande avec les bonnes données de paiement.
<?php include('include/footer.php');
?>';
break;
case '403':
echo '
<?php include('include/head.php'); ?>
Requête interdite !
<?php include('include/footer.php');
?>';
break;
case '404':
echo "<?php include('include/head.php'); ?>
La page demandé n exite plus!
<?php include('include/footer.php');
?>";
break;
case '405':
echo '
<?php include('include/head.php'); ?>
Méthode non autorisée.
include('include/footer.php');
?>';
break;
case '500':
echo '
<?php include('include/head.php'); ?>
Erreur interne au serveur ou serveur saturé.
<?php include('include/footer.php');
?>';
break;
case '501':
echo '<?php include('include/head.php'); ?>
Le serveur ne supporte pas le service demandé.
<?php include('include/footer.php');
?>';
break;
case '502':
echo '
<?php include('include/head.php'); ?>
Mauvaise passerelle.
<?php include('include/footer.php');
?>';
break;
case '503':
echo '
<?php include('include/head.php'); ?>
Service indisponible.
<?php include('include/footer.php');
?>';
break;
case '504':
echo '
<?php include('include/head.php'); ?>
Trop de temps à la réponse.
<?php include('include/footer.php');
?>';
break;
case '505':
echo '
<?php include('include/head.php'); ?>
Version HTTP non supportée.
<?php include('include/footer.php');
?>';
break;
default:
echo 'Erreur !';
}
?>