# HttpClient Basics

HttpClient sends HTTP requests from C#. Give it a base address, await GetAsync for a response, check its status code, and read its body. A failed status is an answer to handle; a server that can't be reached throws an HttpRequestException.

![Cheat sheet: HttpClient Basics](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/ecada259f13748ad88487718703d03a3.webp)

- Category: C#
- Level: Journeyman
- Tags: c-sharp, HttpClient (c-sharp), HttpResponseMessage, rest-api
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/calling-apis-with-httpclient-httpclient-basics-cheat-sheet
