Analyzing Status Code Misuses in REST API Specifications

Many web APIs rely on the REST architectural style, exploiting HTTP for client-server interactions. Clients typically interpret server responses using status codes, such as 200 OK (success) or 404 Not Found (unavailable resource). As REST does not enforce HTTP standards, servers may misuse status codes (e.g., using 500 for a client error instead of 4xx). Such misuses cause false positives during testing and confuse clients. In this paper, we explore the prevalence of status code misuses in REST APIs. We introduce SCOAS, a tool that detects status code misuses in OpenAPI specifications using 24 rules derived from HTTP standards. We demonstrate that status code misuses are systematic in REST APIs, with 17,767 rule violations detected across 60 specifications. We further discuss their implications and provide recommendations for testers and clients.

Authors

Publication Details

Journal
Repository of the University of Namur
Published
2026-04-15
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Analyzing Status Code Misuses in REST API Specifications

Gilles Perrouin, Mike Papadakis, Alix; id_orcid 0009-0007-2641-5983 Decrop
Repository of the University of Namur
Software Testing and Debugging Techniques
article

Analyzing Status Code Misuses in REST API Specifications

Gilles Perrouin, Mike Papadakis, Alix; id_orcid 0009-0007-2641-5983 Decrop
article en

Abstract

Many web APIs rely on the REST architectural style, exploiting HTTP for client-server interactions. Clients typically interpret server responses using status codes, such as 200 OK (success) or 404 Not Found (unavailable resource). As REST does not enforce HTTP standards, servers may misuse status codes (e.g., using 500 for a client error instead of 4xx). Such misuses cause false positives during testing and confuse clients. In this paper, we explore the prevalence of status code misuses in REST APIs. We introduce SCOAS, a tool that detects status code misuses in OpenAPI specifications using 24 rules derived from HTTP standards. We demonstrate that status code misuses are systematic in REST APIs, with 17,767 rule violations detected across 60 specifications. We further discuss their implications and provide recommendations for testers and clients.

Repository of the University of Namur
Peace, Justice and strong institutions
Openalex Percentile: Top 14%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.