{"title":"HttpResponseMessage data type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/httpresponsemessage/httpresponsemessage-data-type/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httpresponsemessage/httpresponsemessage-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httpresponsemessage/httpresponsemessage-data-type","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Represents an HTTP response message including the status code and data.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Instance methods","slug":"instance-methods","at":132,"chars":952},{"level":2,"title":"Remarks","slug":"remarks","at":1084,"chars":524},{"level":2,"title":"Related information","slug":"related-information","at":1608,"chars":117}],"text":"> Version: _Available or changed with runtime version 1.0._\nRepresents an HTTP response message including the status code and data.\n## Instance methods\nThe following methods are available on instances of the HttpResponseMessage data type.\nMethod name|Description\nhttpresponsemessage-content-method|Gets the contents of the HTTP response.\nGetCookie(Text, var Cookie)<httpresponsemessage-getcookie-method>|Gets the specified cookie given a name.\nhttpresponsemessage-getcookienames-method|Gets the list of cookie names.\nhttpresponsemessage-headers-method|Gets the HTTP response's HTTP headers.\nhttpresponsemessage-httpstatuscode-method|Gets the status code of the HTTP response.\nhttpresponsemessage-isblockedbyenvironment-method|Gets a value that indicates if the HTTP response is the result of the environment blocking an outgoing HTTP request.\nhttpresponsemessage-issuccessstatuscode-method|Gets a value that indicates if the HTTP response was successful.\nhttpresponsemessage-reasonphrase-method|Gets the reason phrase which typically is sent by servers together with the status code.\n## Remarks\nThe size of the HttpResponseMessage is determined by the `HttpClient AL Function Response Size` setting on the Dynamics 365 Business Central server. The default value is `150`. See Microsoft Dynamics 365 Business Central Server Configuration<../../../administration/configure-server-instance>.\n> NOTE\n> For performance reasons all HTTP, JSON, TextBuilder, and XML types are reference types, not value types. Reference types holds a pointer to the data elsewhere in memory, whereas value types store its own data.\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}