HTTPError.net

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

100 Continue

Fault: Neither
TL;DR

The initial part of a request has been received and the client should continue with the request.

The server has received the request headers and the client should proceed to send the request body.

What This Error Means

The server has received the request headers and the client should proceed to send the request body.

The initial part of a request has been received and the client should continue with the request.

Common Causes

How to Fix It (For Visitors)

How to Fix It (For Developers/Admins)

Code Examples

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

Python (Flask)

from flask import Flask, jsonify

app = Flask(__name__)

@app.route('/endpoint')
def endpoint():
    return jsonify({"message": "Continue"}), 100

Node.js (Express)

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

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

PHP

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

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(100)
    json.NewEncoder(w).Encode(map[string]string{
        "message": "Continue",
    })
}

Java (Spring Boot)

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

Ruby (Sinatra)

get '/endpoint' do
    status 100
    json message: 'Continue'
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 7231 Section 6.2.1.

View on IANA HTTP Status Code Registry →