prism-backend / templates /error.html
Penguindrum920's picture
Prepare PRISM backend for Hugging Face Spaces
7bc5fde verified
Raw
History Blame Contribute Delete
2.61 kB
{% extends "base.html" %}
{% block title %}Error {{ error_code }} - Parkinson's Disease Assessment System{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-body text-center p-5">
<div class="mb-4">
{% if error_code == 404 %}
<i class="fas fa-search fa-5x text-warning"></i>
{% elif error_code == 500 %}
<i class="fas fa-exclamation-triangle fa-5x text-danger"></i>
{% else %}
<i class="fas fa-exclamation-circle fa-5x text-secondary"></i>
{% endif %}
</div>
<h1 class="display-4 fw-bold text-primary mb-3">
Error {{ error_code }}
</h1>
{% if error_code == 404 %}
<h3 class="mb-3">Page Not Found</h3>
<p class="lead mb-4">
The page you're looking for doesn't exist or has been moved.
</p>
{% elif error_code == 500 %}
<h3 class="mb-3">Internal Server Error</h3>
<p class="lead mb-4">
Something went wrong on our end. Please try again later.
</p>
{% else %}
<h3 class="mb-3">{{ error_message }}</h3>
<p class="lead mb-4">
An unexpected error occurred. Please try again.
</p>
{% endif %}
<div class="d-grid gap-2 d-md-flex justify-content-md-center">
<a href="{{ url_for('index') }}" class="btn btn-primary btn-lg me-md-2">
<i class="fas fa-home me-2"></i>Go Home
</a>
<a href="{{ url_for('assessment') }}" class="btn btn-outline-primary btn-lg">
<i class="fas fa-stethoscope me-2"></i>Start Assessment
</a>
</div>
{% if error_code == 500 %}
<div class="mt-4">
<p class="text-muted">
If this problem persists, please contact technical support.
</p>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}