HTTP Status codes.

Discussion in 'C#' started by eXe, Nov 17, 2006.

  1. #1
    Like in php it's possible to send a custom http response code, for example

    <?php
    header("HTTP/1.0 404 Not Found");
    ?> 
    PHP:
    How can this be done with asp. Especially a 503 error message.
     
    eXe, Nov 17, 2006 IP
  2. IR5

    IR5 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    here it may help you:
    blogs.msdn.com/david.wang/archive/2006/05/08/HOWTO-Useful-ASP-page-to-return-configurable-HTTP-Status-codes.aspx

    Response.Status = "503"
     
    IR5, Nov 18, 2006 IP
  3. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #3
    ludwig, Nov 18, 2006 IP