HTTPError.net

The fastest way to diagnose, understand, and fix any HTTP status code

103 Early Hints

Fault: Neither
TL;DR

Allows the server to send preliminary response headers while it prepares the full response.

Used to return some response headers before final HTTP message.

What This Error Means

Used to return some response headers before final HTTP message.

Allows the server to send preliminary response headers while it prepares the full response.

Common Causes

How to Fix It (For Visitors)

How to Fix It (For Developers/Admins)

Code Examples

Here's how to return a 103 status code in various programming languages:

Python (Flask)

from flask import Flask, jsonify

app = Flask(__name__)

@app.route('/endpoint')
def endpoint():
    return jsonify({"message": "Early Hints"}), 103

Node.js (Express)

const express = require('express');
const app = express();

app.get('/endpoint', (req, res) => {
    res.status(103).json({ message: 'Early Hints' });
});

PHP

<?php
http_response_code(103);
header('Content-Type: application/json');
echo json_encode(['message' => 'Early Hints']);
?>

Go

package main

import (
    "encoding/json"
    "net/http"
)

func handler(w http.ResponseWriter, r *http.Request) {
    w.Header().Set("Content-Type", "application/json")
    w.WriteHeader(103)
    json.NewEncoder(w).Encode(map[string]string{
        "message": "Early Hints",
    })
}

Java (Spring Boot)

@GetMapping("/endpoint")
public ResponseEntity<Map<String, String>> endpoint() {
    Map<String, String> response = new HashMap<>();
    response.put("message", "Early Hints");
    return ResponseEntity.status(103).body(response);
}

Ruby (Sinatra)

get '/endpoint' do
    status 103
    json message: 'Early Hints'
end

Browser Compatibility

Browser Support Notes
Chrome✓ Full SupportAll versions
Firefox✓ Full SupportAll versions
Safari✓ Full SupportAll versions
Edge✓ Full SupportAll versions

Official Specification

This status code is defined in RFC 8297.

View on IANA HTTP Status Code Registry →