Metraipolis › archive › dc_a44b3cd77cab
Detecting HTTP Status Code Misuses in REST APIs via Static and Dynamic Analysis — arXiv:2609.12770
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.12770
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T03:34:03.055Z
- SHA-256 of the archived text
0210caf08451c4e383f0a24c88211ba83b2c591c071b3407b47ae266720a05bd- Stable URL of this page
https://metraipolis.com/documento/dc_a44b3cd77cab
How to cite
Detecting HTTP Status Code Misuses in REST APIs via Static and Dynamic Analysis — arXiv:2609.12770 — arXiv (en), https://arxiv.org/abs/2609.12770 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a44b3cd77cab (Metraipolis archive dc_a44b3cd77cab, sha256 0210caf08451c4e383f0a24c88211ba83b2c591c071b3407b47ae266720a05bd)
BibTeX
@misc{dca44b3cd77cab,
title = {Detecting HTTP Status Code Misuses in REST APIs via Static and Dynamic Analysis — arXiv:2609.12770},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.12770},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a44b3cd77cab; sha256 0210caf08451c4e383f0a24c88211ba83b2c591c071b3407b47ae266720a05bd},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.12770. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
REST APIs are widely used on the web for client-server communications. As REST is based on HTTP, server responses contain status codes to indicate the outcome of requests (e.g., 200 OK for a success and 404 Not Found for an unavailable resource). While HTTP status codes are standardized, their semantics are not enforced in REST, leading to many misuses in practice (e.g., using 500 Internal Server Error to describe a client error). Such misuses may have nefarious consequences, such as reducing interoperability, misleading API clients, or causing false positives in testing tools. In this paper, we present a combined static and dynamic analysis approach for detecting HTTP status code misuses in REST APIs. We first study 2,625 real-world REST API specifications to identify relevant status codes and derive a set of 30 usage rules based on HTTP standards and REST API principles. We then implement tools to identify such rule violations in OpenAPI specifications (static analysis) and in API behavior (dynamic analysis). Our evaluation finds that status code misuses are frequent and systematic in REST APIs, with both static and dynamic approaches detecting various misuses. We highlight that both approaches may be used in a complementary manner, and also provide insight for REST API testers and users alike. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-14 in cs.SE). Categorie arXiv: Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2609.12770 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-16T03:11:31.870Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-14?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).