handleErrorStatus() — spring-boot Function Reference
Architecture documentation for the handleErrorStatus() function in ErrorPageFilter.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 5058c8a8_c646_da09_10ff_6d8fa528e734["handleErrorStatus()"] 873f6b7c_85c2_a3ed_3274_21aed5f72f7b["doFilter()"] 873f6b7c_85c2_a3ed_3274_21aed5f72f7b -->|calls| 5058c8a8_c646_da09_10ff_6d8fa528e734 c19a7bcd_5cad_527c_de6f_3fff3ee47590["handleCommittedResponse()"] 5058c8a8_c646_da09_10ff_6d8fa528e734 -->|calls| c19a7bcd_5cad_527c_de6f_3fff3ee47590 4bc06613_6a2d_95e4_9428_ea657edcebd1["getErrorPath()"] 5058c8a8_c646_da09_10ff_6d8fa528e734 -->|calls| 4bc06613_6a2d_95e4_9428_ea657edcebd1 07856fdd_a72b_63c3_93d7_0432d80159ac["sendError()"] 5058c8a8_c646_da09_10ff_6d8fa528e734 -->|calls| 07856fdd_a72b_63c3_93d7_0432d80159ac f3f2e662_4caf_1d24_2e95_bd9da70f84f2["setErrorAttributes()"] 5058c8a8_c646_da09_10ff_6d8fa528e734 -->|calls| f3f2e662_4caf_1d24_2e95_bd9da70f84f2 style 5058c8a8_c646_da09_10ff_6d8fa528e734 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/ErrorPageFilter.java lines 147–161
private void handleErrorStatus(HttpServletRequest request, HttpServletResponse response, int status,
@Nullable String message) throws ServletException, IOException {
if (response.isCommitted()) {
handleCommittedResponse(request, null);
return;
}
String errorPath = getErrorPath(this.statuses, status);
if (errorPath == null) {
response.sendError(status, message);
return;
}
response.setStatus(status);
setErrorAttributes(request, status, message);
request.getRequestDispatcher(errorPath).forward(request, response);
}
Domain
Subdomains
Calls
- getErrorPath()
- handleCommittedResponse()
- sendError()
- setErrorAttributes()
Called By
Source
Frequently Asked Questions
What does handleErrorStatus() do?
handleErrorStatus() is a function in the spring-boot codebase.
What does handleErrorStatus() call?
handleErrorStatus() calls 4 function(s): getErrorPath, handleCommittedResponse, sendError, setErrorAttributes.
What calls handleErrorStatus()?
handleErrorStatus() is called by 1 function(s): doFilter.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free