# fsNetworkHttpRequestGetErrorCode The **fsNetworkHttpRequestGetErrorCode** function will retrieve the error code assciated with the given request.   ##### Syntax ``` wasm int fsNetworkHttpRequestGetErrorCode( FsNetworkRequestId requestId ); ```   ##### Members {{< table-wrapper >}} | Parameters | Description | |-------------|--------------------------------------| | `requestId` | The request ID to get the data from. | {{< /table-wrapper >}}   ##### Return Values This function will returns a valid [HTTP error code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status). Note that it may return 0 - or a negative value - if the function is called too soon, or if the request failed.   ##### Remarks N/A