httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karsten Konrad <karsten.kon...@uni-graz.at>
Subject [users@httpd] Change HTTP status code in Custom Errors
Date Fri, 09 Jun 2006 20:47:16 GMT
Greetings!

I'd like to change the custom errormessages so they don't return the
actual http code "502 Bad Gateway" but "503 Service Unavailable". I had
hoped, that including a status line in the header might work, but it
doesn't. Below I have included a fragment of my last attempt.

Does anybody know how to solve this?
I haven't found a clue neither the docs nor on google so far. :-(

best regards,
Karsten

--- cut ---

Status: 503 Service Unavailable
Content-language: de
Content-type: text/html; charset=ISO-8859-1
Body:----------de--
<!--#set var="CONTENT_LANGUAGE" value="de"
--><!--#set var="TITLE" value="Wartungsarbeiten!"
--><!--#set var="REDIRECT_STATUS" value="503"
--><!--#include virtual="include/top.html"-->

        The Service is currently not available.

  <!--#if expr="$REDIRECT_ERROR_NOTES" -->
    <!--#include virtual="include/spacer.html" -->
    <!--#echo encoding="none" var="REDIRECT_ERROR_NOTES" -->
  <!--#endif -->

<!--#include virtual="include/bottom.html" -->
----------de--

--- cut ---


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message