SIP

Mock 200 OK Response

The request has succeeded. For INVITE, the call has been answered. For other methods, the action has been completed successfully.

View full reference →

1 HTTP Response

HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT
Content-Length: 57

{
  "status": "success",
  "data": {
    "id": 1,
    "message": "OK"
  }
}

2 Test with curl

terminal
curl -i https://httpbin.org/status/200

3 Return 200 OK in Your Framework

django
from django.http import JsonResponse


def my_view(request):
    return JsonResponse(
        {"status": "success", "data": {"id": 1, "message": "OK"}},
        status=200,
    )
flask
from flask import Flask, jsonify

app = Flask(__name__)


@app.route("/endpoint")
def my_endpoint():
    return jsonify({"status": "success", "data": {"id": 1, "message": "OK"}}), 200
fastapi
from fastapi import FastAPI
from fastapi.responses import JSONResponse

app = FastAPI()


@app.get("/endpoint")
def my_endpoint():
    return JSONResponse(
        content={"status": "success", "data": {"id": 1, "message": "OK"}},
        status_code=200,
    )
express.js
// Express.js
app.get('/endpoint', (req, res) => {
  res.status(200).json({"status": "success", "data": {"id": 1, "message": "OK"}});
});
spring boot
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.Map;

@RestController
public class MyController {

    @GetMapping("/endpoint")
    public ResponseEntity<Map<String, Object>> myEndpoint() {
        return ResponseEntity
            .status(200)
            .body(Map.of("error", "ok",
                         "message", "OK"));
    }
}
go net/http
package main

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

func myHandler(w http.ResponseWriter, r *http.Request) {
    w.Header().Set("Content-Type", "application/json")
    w.WriteHeader(200)
    json.NewEncoder(w).Encode(map[string]string{
        "error":   "ok",
        "message": "OK",
    })
}
ruby on rails
class MyController < ApplicationController
  def my_action
    render json: {"status": "success", "data": {"id": 1, "message": "OK"}},
           status: :ok
  end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
    Results.Json(
        new { error = "ok", message = "OK" },
        statusCode: 200
    )
);

More SIP Mock Pages