[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-732906-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-732906-en":130,"doc-similar-732906":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","detecting-http-status-code-misuses-in-rest-apis-via-static-and-dynamic-analysis","Detecting HTTP Status Code Misuses in REST APIs via Static and Dynamic Analysis","","REST APIs rely on HTTP status codes to communicate request outcomes, yet REST does not enforce the correct semantics, leading to widespread status code misuses. These deviations can harm interoperability, mislead API clients and testing tools, and cause inaccurate results such as false bug reports. The paper presents a combined static and dynamic detection approach: first analyze 2,625 real-world REST API specifications to derive 30 HTTP/REST-based usage rules, then implement tools to detect violations in OpenAPI and runtime behavior, demonstrating frequent, systematic misuses.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/detecting-http-status-code-misuses-in-rest-apis-via-static-and-dynamic-analysis/732906/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/detecting-http-status-code-misuses-in-rest-apis-via-static-and-dynamic-analysis/732906.png","ImageObject",300,407,{"name":42,"@type":43},"moss~","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-11-22",true,{"@type":52,"interactionType":53,"userInteractionCount":26},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"Why do REST APIs suffer from HTTP status code misuses?","Question",{"text":62,"@type":63},"REST does not enforce HTTP status semantics, so many APIs deviate from the intended meaning of codes. This creates frequent and systematic misuse patterns.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What are the harmful consequences of using incorrect HTTP status codes?",{"text":67,"@type":63},"Misuses can reduce interoperability, mislead API clients, and distort testing conclusions. They may also trigger false positives in tools like fuzzers that treat 5xx responses as bugs.",{"name":69,"@type":60,"acceptedAnswer":70},"How does the paper detect status code misuses?",{"text":71,"@type":63},"It combines static and dynamic analysis. It derives 30 usage rules from 2,625 REST API specifications and uses SCOAS to check OpenAPI specifications, while extending EvoMaster to analyze behavior during execution.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},732906,1795382805,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":33,"preview_urls":145},962090895452,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","arXiv : 2609 . 12770v 1 [cs .SE] 1 1 Sep 2026  \nDetecting [HTTP Status Code Misuses](HTTP Status Code Misuses) in REST APIs via Static and Dynamic Analysis  \nALIX DECROP, NADI, University of Namur, Belgium  \nANDREA ARCURI, Kristiania University of Applied Sciences and Oslo Metropolitan University, Norway MIKE PAPADAKIS, SnT, University of Luxembourg, Luxembourg  \nPIERRE-YVES SCHOBBENS, NADI, University of Namur, Belgium GILLES PERROUIN, NADI, University of Namur, Belgium  \nREST APIs are widely used on the web for client-server communications. As REST is based on [HTTP](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](HTTP)[ ](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](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](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.  \nCCS Concepts: • Information systems → RESTful web services; Web mining; • Software and its engineering → Documentation; Software testing and debugging.  \nAdditional Key Words and Phrases: REST APIs, OpenAPI Specification, Status Codes Misuses, Static Analysis, Dynamic Analysis  \n1 Introduction  \nMany modern web Application Programming Interfaces (APIs) rely on the REpresentational State Transfer (REST) architectural style [22]. Such REST (also termed RESTful) APIs handle client-server communications through [HTTP](HTTP). Via its comprehensive list of methods and status codes, the [HTTP standard allows](HTTP standard allows) for interoperable communication among web services. However, this paper finds that many REST APIs deviate from HTTP semantics regarding the correct use of status codes; We call such deviations status codes misuses.  \nStatus code misuses can have several harmful consequences. For instance, some APIs returns status codes in the 5xx range for client errors. However, when a client error is encountered, a code in the 4xx range is expected, as 5xx codes are exclusively reserved for server errors. This confuses clients, falsely believing that errors come from the server and not from their side. Similarly, misuses also mislead REST API analysis and testing tools, threatening the conclusions one can make from their usage and causing result inaccuracies (e.g., 5xx codes are often directly treated as bugs by fuzzing tools) . Additionally, APIs may implement their own status codes that do not map to official HTTP status codes interpretations, forcing clients to implement non-interoperable parsing if they wish to be more informative to their users. Furthermore, APIs may return overly generic status codes, such as 400 Bad Request for an unsupported content  \nAuthors’ Contact Information: Alix Decrop, [alix.decrop@unamur.be](alix.decrop@unamur.be), NADI, University of Namur, Namur, Belgium; Andrea Arcuri, an[drea.arcuri@kristiania.no](drea.arcuri@kristiania.no), Kristiania University of Applied Sciences and Oslo Metropolitan University, Oslo, Norway; Mike Pap","cbCainM9fWZDKhQe","https://ap.wps.com/l/cbCainM9fWZDKhQe","pdf",1022135,26,"English","# Introduction\n## Status code misuses in REST APIs\n# Approach and Contributions\n## Dataset and usage rules\n## SCOAS and dynamic analysis via EvoMaster\n## Evaluation results","[{\"question\":\"Why do REST APIs suffer from HTTP status code misuses?\",\"answer\":\"REST does not enforce HTTP status semantics, so many APIs deviate from the intended meaning of codes. This creates frequent and systematic misuse patterns.\"},{\"question\":\"What are the harmful consequences of using incorrect HTTP status codes?\",\"answer\":\"Misuses can reduce interoperability, mislead API clients, and distort testing conclusions. They may also trigger false positives in tools like fuzzers that treat 5xx responses as bugs.\"},{\"question\":\"How does the paper detect status code misuses?\",\"answer\":\"It combines static and dynamic analysis. It derives 30 usage rules from 2,625 REST API specifications and uses SCOAS to check OpenAPI specifications, while extending EvoMaster to analyze behavior during execution.\"}]","Detecting HTTP Status Code Misuses in REST APIs via Static and Dynamic Analysis | PDF",66,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/af6f70599be5b30b23d5896332484dcd.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/2aa6008b6980a922b956f0e270f61e16.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/dcf42422d9d92b8489f6ad9438ef6997.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/295e4634b631f47500b254bca8d27e08.webp",980,1268,{"list":163,"token":11},[164,170,177,183,189,195,201,207,213,219],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":30,"category_name":29,"create_tm":169},673524,"ISO 20022 and Web APIs - An Implementation Best Practices White Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990908467/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=AXKLMXk8XKN8QAeDPMNz1Fnls8Y%3D","iso-20022-and-web-apis-an-implementation-best-practices-white-paper",1793647779,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},489347,"Automatic Generation of Test Cases for REST APIs - a Specification-Based Approach","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926993096/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=CN3%2F2VVNc5j6BKb8xMoTHdUb0FQ%3D","automatic-generation-of-test-cases-for-rest-apis-a-specification-based-approach",11,1790822346,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":115,"category_name":29,"create_tm":182},489346,"NLGov REST API Design Rules - 2 - definitive version","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927229971/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=D15bpwV4Mz8Lx%2BVZ0LzTiJLeorI%3D","nlgov-rest-api-design-rules-2-definitive-version",1790822345,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":30,"category_name":29,"create_tm":188},686580,"Live API-Bench - 2500+ Live APIs for Testing Multi-Step Tool Calling","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000538437/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=klZeh9dYiOj3RP8GF7Pr4kieMho%3D","live-api-bench-2500-live-apis-for-testing-multi-step-tool-calling",1794057054,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":30,"category_name":29,"create_tm":194},696156,"Building Robust REST APIs with Spring Boot - A Practical Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009756946/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=bf5dfkiVXWynVZEvE2j5FzEr3jU%3D","building-robust-rest-apis-with-spring-boot-a-practical-guide",1794431611,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":33,"category_name":29,"create_tm":200},680269,"Fuzzing for Detecting Access Policy Violations in REST APIs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229997725419/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=7HrV%2BHayihqLZJeJYrsZGl9DSKY%3D","fuzzing-for-detecting-access-policy-violations-in-rest-apis",1793915430,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":30,"category_name":29,"create_tm":206},680158,"Checking Security Properties of Cloud Service REST APIs - active property checkers for REST API security rules","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229997720013/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=AqoIkC2TkO74QB7GuYfLiV1tHH4%3D","checking-security-properties-of-cloud-service-rest-apis-active-property-checkers-for-rest-api-security-rules",1793914281,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":30,"category_name":29,"create_tm":212},682273,"RESTful API Design for Geospatial Logistics Platforms Using TypeScript and Laravel","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999450331/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=mDbqwLx4%2BOc4XBWqEdxjDQrVT%2Fc%3D","restful-api-design-for-geospatial-logistics-platforms-using-typescript-and-laravel",1793964650,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":115,"category_name":29,"create_tm":218},701606,"Interoperability and Integration Frameworks for AI in Healthcare Enterprises - Leveraging HL7 FHIR and Cloud APIs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012418430/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=pKRIQE8xkgsR3LbqwzWzeWwQj6c%3D","interoperability-and-integration-frameworks-for-ai-in-healthcare-enterprises-leveraging-hl7-fhir-and-cloud-apis",1794533569,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":96,"category_name":29,"create_tm":224},686572,"RestGPT: Connecting Large Language Models with Real-World RESTful APIs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001037211/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=BdwieYAzPxb%2BxMDo984IHUvutL0%3D","restgpt-connecting-large-language-models-with-real-world-restful-apis",1794057002]