# HttpClient.Timeout([Duration]) Method
> Version: _Available or changed with runtime version 1.0._
Gets or sets the duration in milliseconds to wait before the request times out.
## Syntax
```al
[CurrentTimeout := ]  HttpClient.Timeout([SetTimeout: Duration])
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
HttpClient
Type: httpclient-data-type
An instance of the httpclient-data-type data type.
*[Optional] SetTimeout*
Type: ../duration/duration-data-type
The duration in milliseconds to wait before the request times out.
## Return Value
*[Optional] CurrentTimeout*
Type: ../duration/duration-data-type
The duration in milliseconds to wait before the request times out.
## Remarks
If you don't set a duration, then a default value is used. The default value is currently 100000 ms (100 seconds).
The SetTimeout duration is limited by the NavHttpClientMaxTimeout parameter that is configured for Business Central Server instance. If you set the duration to a value that is greater than the value of the NavHttpClientMaxTimeout parameter, a 'NavNclHttpClientTimeoutTooLargeException' error is thrown. The default value of the NavHttpClientMaxTimeout parameter is 00:05:00. To change the NavHttpClientMaxTimeout parameter, see Configuring Business Central Server<../../../administration/configure-server-instance>.
## Related information
httpclient-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

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/httpclient/httpclient-timeout-method, 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. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/httpclient/httpclient-timeout-method/
