-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathIndex.cshtml
More file actions
92 lines (87 loc) · 2.62 KB
/
Index.cshtml
File metadata and controls
92 lines (87 loc) · 2.62 KB
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
92
@{
Layout = "~/Views/Shared/LayoutExternal.cshtml";
if (Model != 701)
{
if (ViewBag.SolutionId == "myaccount")
{
await Html.RenderPartialAsync("ExtPageHeader");
}
else if (ViewBag.WhichConsole == "dc" || ViewBag.WhichConsole == "uc")
{
await Html.RenderPartialAsync("ScontextHeader");
}
else
{
await Html.RenderPartialAsync("ExtPageHeader");
}
}
}
@{
var statusCode = Model;
var statusmessage = "";
switch (statusCode)
{
case 400:
statusmessage = "Bad request: The request cannot be fulfilled due to bad syntax";
break;
case 401:
statusmessage = "Access denied";
break;
case 403:
statusmessage = "Forbidden";
break;
case 404:
statusmessage = "Page not found";
break;
case 408:
statusmessage = "The server timed out waiting for the request";
break;
case 500:
statusmessage = "Internal Server Error - server was unable to finish processing the request";
break;
case 700:
statusmessage = "Solution does not exist!";
break;
case 701:
statusmessage = "Please enable third-party cookies in your browser settings for this page to work properly";
break;
case 702:
statusmessage = "✅ Submitted Successfully";
break;
case 703:
statusmessage = "Already Submitted ✅";
break;
default:
statusmessage = "That’s odd... Something we didn't expect happened";
break;
}
}
<div class="error_cont h-100">
<div class="error_wrapper">
<div class="errorcode_img">
@{
if (Model == 401)
{
<img src="~/images/eb_401.svg" class="w-100" />
}
else if (Model == 404)
{
<img src="~/images/eb_404.jpg" class="w-100" />
}
else if (Model == 700)
{
<img src="~/images/eb_404.jpg" class="w-100" />
}
}
</div>
<h2 class="text-center">@statusmessage</h2>
@if (statusCode < 701)
{
<button class="ebbtn eb_btnblue backto_home" id="backto_home" onclick="javascript: history.go(-1)">Go Back</button>
}
</div>
</div>
<script>
console.log('Response: ');
console.log(@Html.Raw(ViewBag.ErrorResponse));
</script>