Topic Path: Symbol Reference > Classes > TIdCustomHTTP Class > TIdCustomHTTP Properties > ResponseCode Property
ContentsIndexHome
PreviousUpNext
TIdCustomHTTP.ResponseCode Property

Specifies the response code received from a HTTP server.

property ResponseCode: Integer;

ResponseCode is a read-only Integer property that specifies the numeric response code received from a HTTP server. 

ResponseCode normally contains one of the following values and associated meanings: 

 

Code 
Meaning 
200 
OK 
201 
Created 
202 
Accepted 
203 
Non-authoritative Information 
204 
No Content 
205 
Reset Content 
206 
Partial Content 
301 
Moved Permanently 
302 
Moved Temporarily 
303 
See Other 
304 
Not Modified 
305 
Use Proxy 
400 
Bad Request 
401 
Unauthorized 
403 
Forbidden 
404 
Not Found 
405 
Method not allowed 
406 
Not Acceptable 
407 
Proxy Authentication Required 
408 
Request Timeout 
409 
Conflict 
410 
Gone 
411 
Length Required 
412 
Precondition Failed 
413 
Request Entity To Long 
414 
Request-URI Too Long. 256 Chars max 
415 
Unsupported Media Type 
500 
Internal Server Error 
501 
Not Implemented 
502 
Bad Gateway 
503 
Service Unavailable 
504 
Gateway timeout 
505 
HTTP version not supported 

 

ResponseCode is updated in the DoRequest method when a HTTP server response is retrieved. 

Use ResponseText to access the textual description of the numeric response code.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.