HttpResponseMessage.HttpStatusCode() Method
Version: Available or changed with runtime version 1.0.
Gets the status code of the HTTP response.
Syntax
StatusCode := HttpResponseMessage.HttpStatusCode()
Note
This method can be invoked using property access syntax.
Parameters
HttpResponseMessage
Type: HttpResponseMessage
An instance of the HttpResponseMessage data type.
Return Value
StatusCode
Type: Integer
The status code of the HTTP response.
HTTP status codes
When you try to access content on a server by using the HTTP protocol, it returns a numeric code that indicates the result of the request and semantics of the response, including whether the request was successful.
The first digit of the status code defines the class of response. The last two digits don't have any categorization role. There are five values for the first digit:
1xx (Informational): Provisional response - the request was received, continuing process.
2xx (Successful): The server successfully received and accepted the request.
3xx (Redirection): Further action needs to be taken in order to complete the request.
4xx (Client Error): The request contains an error and can't be fulfilled.
5xx (Server Error): The server failed to fulfill the request.
For more information, see HTTP Semantics
See Also
HttpResponseMessage Data Type
Get Started with AL
Developing Extensions
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈