Bugfix in errors/*.pl and opac/errors/*.pl

The scripts did not define the status printed on the first line of
HTTP headers correctly: they were sending 200 OK,
which was confusing for browsers.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Sébastien Hinderer 2009-11-01 01:04:19 +01:00 committed by Galen Charlton
parent f7d019dcec
commit de94e449cd
11 changed files with 11 additions and 11 deletions

View File

@ -34,4 +34,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param( admin => $admin );
output_html_with_http_headers $query, $cookie, $template->output;
output_with_http_headers $query, $cookie, $template->output, 'html', '400 Bad Request';

View File

@ -34,4 +34,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param( admin => $admin );
output_html_with_http_headers $query, $cookie, $template->output;
output_with_http_headers $query, $cookie, $template->output, 'html', '401 Unauthorized';

View File

@ -34,4 +34,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param( admin => $admin );
output_html_with_http_headers $query, $cookie, $template->output;
output_with_http_headers $query, $cookie, $template->output, 'html', '402 Payment Required';

View File

@ -34,4 +34,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param( admin => $admin );
output_html_with_http_headers $query, $cookie, $template->output;
output_with_http_headers $query, $cookie, $template->output, 'html', '403 Forbidden';

View File

@ -34,4 +34,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param( admin => $admin );
output_html_with_http_headers $query, $cookie, $template->output;
output_with_http_headers $query, $cookie, $template->output, 'html', '404 Not Found';

View File

@ -34,4 +34,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param( admin => $admin );
output_html_with_http_headers $query, $cookie, $template->output;
output_with_http_headers $query, $cookie, $template->output, 'html', '500 Internal Server Error';

View File

@ -36,4 +36,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param( admin => $admin );
output_html_with_http_headers $query, $cookie, $template->output;
output_with_http_headers $query, $cookie, $template->output, 'html', '400 Bad Request';

View File

@ -36,4 +36,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param( admin => $admin );
output_html_with_http_headers $query, $cookie, $template->output;
output_with_http_headers $query, $cookie, $template->output, 'html', '401 Unauthorized';

View File

@ -36,4 +36,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param( admin => $admin );
output_html_with_http_headers $query, $cookie, $template->output;
output_with_http_headers $query, $cookie, $template->output, 'html', '402 Payment Required';

View File

@ -36,4 +36,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param( admin => $admin );
output_html_with_http_headers $query, $cookie, $template->output;
output_with_http_headers $query, $cookie, $template->output, 'html', '403 Forbidden';

View File

@ -36,4 +36,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param( admin => $admin );
output_html_with_http_headers $query, $cookie, $template->output;
output_with_http_headers $query, $cookie, $template->output, 'html', '500 Internal Server Error';