<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Web Services on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/web-services/</link><description>Recent content in Web Services on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 23 Dec 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/web-services/index.xml" rel="self" type="application/rss+xml"/><item><title>HTTP Status Codes, HTTP Headers, CORS Configuration Cheatsheet - Complete Reference 2025</title><link>https://ai-blog.noorshomelab.dev/cheatsheets/http-status-codes-headers-cors-cheatsheet/</link><pubDate>Tue, 23 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/cheatsheets/http-status-codes-headers-cors-cheatsheet/</guid><description>&lt;p&gt;This cheatsheet provides a comprehensive reference for HTTP Status Codes, HTTP Headers, and CORS (Cross-Origin Resource Sharing) configuration. It&amp;rsquo;s designed for quick lookup, practical examples, and best practices for developers and tech professionals working with web APIs and services.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="quick-reference"&gt;Quick Reference&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;Concept&lt;/th&gt;
&lt;th style="text-align: left"&gt;Description&lt;/th&gt;
&lt;th style="text-align: left"&gt;Common Example / Syntax&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;strong&gt;HTTP Status&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Server&amp;rsquo;s response to a client&amp;rsquo;s request, indicating success or failure.&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;200 OK&lt;/code&gt;, &lt;code&gt;404 Not Found&lt;/code&gt;, &lt;code&gt;500 Internal Server Error&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;strong&gt;HTTP Header&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Metadata sent with HTTP requests and responses.&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;Content-Type: application/json&lt;/code&gt;, &lt;code&gt;Authorization: Bearer ...&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;strong&gt;CORS&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Mechanism allowing web pages to request resources from a different domain.&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;Access-Control-Allow-Origin: https://example.com&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;GET&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Request data from a specified resource.&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;GET /users/123&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;POST&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Submit data to be processed to a specified resource.&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;POST /users&lt;/code&gt; (with JSON body)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;PUT&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Update a specified resource.&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;PUT /users/123&lt;/code&gt; (with JSON body)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;DELETE&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Delete a specified resource.&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;DELETE /users/123&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;OPTIONS&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Describe the communication options for the target resource (CORS preflight).&lt;/td&gt;
&lt;td style="text-align: left"&gt;&lt;code&gt;OPTIONS /api/data&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;hr&gt;
&lt;h2 id="http-status-codes"&gt;HTTP Status Codes&lt;/h2&gt;
&lt;p&gt;HTTP status codes are three-digit numbers returned by a server in response to a client&amp;rsquo;s request. They are grouped into five classes, indicating the nature of the response.&lt;/p&gt;</description></item><item><title>Project: Interacting with an API</title><link>https://ai-blog.noorshomelab.dev/python-mastery-2025/chapter-17-project-interacting-with-api/</link><pubDate>Wed, 03 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/python-mastery-2025/chapter-17-project-interacting-with-api/</guid><description>&lt;h2 id="chapter-17-project-interacting-with-an-api"&gt;Chapter 17: Project: Interacting with an API&lt;/h2&gt;
&lt;p&gt;Welcome back, aspiring Pythonista! So far, we&amp;rsquo;ve learned how to make our Python programs perform calculations, handle data, make decisions, and even manage files. That&amp;rsquo;s a solid foundation! But what if your program needs to get information from &lt;em&gt;outside&lt;/em&gt; itself? What if it needs to talk to other services on the internet?&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s precisely what we&amp;rsquo;ll tackle in this exciting chapter: &lt;strong&gt;interacting with an API&lt;/strong&gt;. You&amp;rsquo;ll discover how to connect your Python applications to external web services, fetch data, and even send information using the power of &lt;strong&gt;HTTP requests&lt;/strong&gt;. This is a fundamental skill for any modern developer, opening up a world of possibilities from building weather apps to automating social media tasks.&lt;/p&gt;</description></item></channel></rss>