{"record":{"id":"aed14e7322e73702","repo":"quarkusio/quarkus","slug":"bandwidth-exceeded","errorCode":null,"errorMessage":"bandwidth exceeded","messagePattern":"bandwidth exceeded","errorType":"http","errorClass":"ResponseStatusException","httpStatus":507,"severity":"info","filePath":"integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/ExceptionThrowingController.java","lineNumber":78,"sourceCode":"\n    @GetMapping(\"/pojo/pojo\")\n    public Greeting pojoWithPojoException() {\n        throw new HandledPojoException(\"bad state\");\n    }\n\n    @GetMapping(\"/pojo/void\")\n    public void voidWithPojoException() {\n        throw new HandledPojoException(\"bad state\");\n    }\n\n    @GetMapping(\"/string\")\n    public String stringWithStringException() {\n        throw new HandledStringException(\"bad state\");\n    }\n\n    @GetMapping(\"/responseStatusException\")\n    public void responseStatusException() {\n        throw new ResponseStatusException(HttpStatus.BANDWIDTH_LIMIT_EXCEEDED, \"bandwidth exceeded\");\n    }\n}\n","sourceCodeStart":60,"sourceCodeEnd":81,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/ExceptionThrowingController.java#L60-L81","documentation":"responseStatusException throws Spring's ResponseStatusException with HttpStatus.BANDWIDTH_LIMIT_EXCEEDED (529) and reason 'bandwidth exceeded'. The test verifies Quarkus maps ResponseStatusException to the annotated HTTP status and reason string automatically, without a custom mapper.","triggerScenarios":"GET /exception/responseStatusException invokes responseStatusException which always throws ResponseStatusException(BANDWIDTH_LIMIT_EXCEEDED, \"bandwidth exceeded\").","commonSituations":"Appears when testing default ResponseStatusException handling; failures mean the framework no longer honors the status/reason, e.g. after a RESTEasy Reactive upgrade.","solutions":["Assert the client receives HTTP 529 and the 'bandwidth exceeded' reason; if not, check the RESTEasy Reactive version's ResponseStatusException handling.","If you intended a different status, adjust the HttpStatus passed in the test or the test assertion.","Confirm no custom mapper overrides ResponseStatusException handling in the test app."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"Response r = given().when().get(\"/exception/responseStatusException\");\nif (r.getStatusCode() != 529)\n    throw new AssertionError(\"ResponseStatusException status not honored: \" + r.getStatusCode());","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Prefer ResponseStatusException over custom mappers for simple status mapping","Pin and test RESTEasy Reactive behavior after upgrades","Document expected status codes in the test assertions"],"tags":["spring-web","test-fixture","response-status-exception"],"backgroundTag":"intentional-test-exception","analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-12T22:17:10.623Z"}