REST.Client.TRESTRequest.OnHTTPProtocolError

From RAD Studio API Documentation

Delphi

property OnHTTPProtocolError: TCustomRESTRequestNotifyEvent read FOnHTTPProtocolError write FOnHTTPProtocolError;

C++

__property OnHTTPProtocolError;

Properties

Type Visibility Source Unit Parent
event published
REST.Client.pas
REST.Client.hpp
REST.Client TRESTRequest

Description

Occurs when the server returns a status code other than "200 - OK". {{#multireplace:REST.Client.TRESTRequest.OnHTTPProtocolError|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:REST.Client.TCustomRESTRequest.OnHTTPProtocolError|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:REST.Client.TCustomRESTRequest.OnHTTPProtocolError|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.


Occurs when the server returns a status code other than "200 - OK".

This event does not occur if a non HTTP-related exception occured. The exceptions list includes, but is not limited to:

  •  Timeout exceptions
  • Server Not Found exceptions.

See Also