Skip to content
Velloreth

#http

Posts tagged with “http”.

13 posts

01

Designing API Error Responses That Help

A good error response tells the client what went wrong and what to do. Learn the status codes, the body shape, and the validation errors.

02

Cookies Explained: Attributes, Scope and Security

Cookies carry state across requests. Learn the attributes, the SameSite values, the security flags, and the size and scope limits.

03

CORS Explained: Why Your Fetch Request Is Blocked

CORS is a browser rule, not a server one. Learn the preflight, the headers, the credentials, and how to fix the common errors.

04

curl: A Complete Practical Guide

curl is the tool for talking to an HTTP API from the terminal. Learn the flags for a request, a header, a body, a file and a debug trace.

05

DNS Explained: How a Domain Name Becomes an IP

DNS resolves a name to an address through a chain of servers. Learn the record types, the caching, the TTL, and how to debug a lookup.

06

ETags Explained: Conditional Requests and 304s

An ETag is a fingerprint of a response. Learn how a conditional request works, the weak and strong forms, and the common mistakes.

07

The Fetch API: A Practical Guide

fetch is the modern way to make an HTTP request in the browser. Learn the response handling, the errors, the abort, and the streaming.

08

HTTP Caching Headers: Cache-Control Explained

Cache-Control, ETag and Vary decide what a browser and a CDN cache. Learn the directives, the revalidation, and the common mistakes.

09

HTTP vs HTTPS: What the S Actually Changes

HTTPS is HTTP inside TLS. Learn the handshake, the certificate, the mixed content problem, and why every site needs it today.

10

Long Polling Explained: Real-Time Without WebSockets

Long polling holds a request open until there is data. Learn the mechanism, the timeout, the reconnect, and the alternatives.

11

REST API Design Principles That Age Well

A well-designed REST API is predictable and hard to break. Learn resources, methods, status codes, versioning, and pagination.

12

Security Headers: A Practical Reference

HSTS, CSP, X-Content-Type-Options and the rest. Learn what each security header does and how to set it without breaking your site.

13

HTTP Status Codes Explained: Practical Reference 2026

Every HTTP status code that matters in practice, which one your API should actually return, and the mistakes that cause confusing client and server bugs.