Returning an HTTP error from a page

Discussion in 'ASP .Net' started by =?Utf-8?B?QnJhZCBRdWlubg==?=, Jun 28, 2005.

  1. I have a status page that I want to return an http error (e.g. 500) depending
    on the internal status of my application.

    It seems that I should be able to do this with Response.AppendHeader, but I
    can't find any specifics.

    Thanks
     
    =?Utf-8?B?QnJhZCBRdWlubg==?=, Jun 28, 2005
    #1
    1. Advertising

  2. =?Utf-8?B?QnJhZCBRdWlubg==?=

    Bruce Barker Guest

    Response.StatusCode = 500;

    -- bruce (sqlwork.com)


    "Brad Quinn" <> wrote in message
    news:...
    >I have a status page that I want to return an http error (e.g. 500)
    >depending
    > on the internal status of my application.
    >
    > It seems that I should be able to do this with Response.AppendHeader, but
    > I
    > can't find any specifics.
    >
    > Thanks
     
    Bruce Barker, Jun 28, 2005
    #2
    1. Advertising

  3. FYI, I want to return a real http error, instead of something human readable,
    beacuse I want to monitor this page with a program that already understands
    http errors.

    "Brad Quinn" wrote:

    > I have a status page that I want to return an http error (e.g. 500) depending
    > on the internal status of my application.
    >
    > It seems that I should be able to do this with Response.AppendHeader, but I
    > can't find any specifics.
    >
    > Thanks
     
    =?Utf-8?B?QnJhZCBRdWlubg==?=, Jun 28, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steven Cheng[MSFT]

    Re: Debugging returning 401 HTTP error

    Steven Cheng[MSFT], Apr 1, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    871
    James Bailey
    Apr 6, 2004
  2. David R
    Replies:
    2
    Views:
    3,879
    David R
    Mar 23, 2006
  3. Replies:
    11
    Views:
    699
    Christos Georgiou
    May 2, 2006
  4. Replies:
    3
    Views:
    845
    Guillermo
    Apr 26, 2007
  5. Chuck
    Replies:
    0
    Views:
    283
    Chuck
    Jul 5, 2003
Loading...

Share This Page