src/main/java/org/apache/sling/servlets/post/impl/PostResponseWithErrorHandling.java [39:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public PostResponse createPostResponse(SlingHttpServletRequest request) {
		if (isSendError(request)) {
			return new HtmlResponse() {

				@Override
				protected void doSend(HttpServletResponse response) throws IOException {
					if (!this.isSuccessful()) {
						response.sendError(this.getStatusCode(), this.getError().toString());
						return;
					}else{
						super.doSend(response);
					}
				}
			};
		}else{
			return null;
		}
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/sling/servlets/post/PostResponseWithErrorHandling.java [34:51]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public PostResponse createPostResponse(SlingHttpServletRequest request) {
		if (isSendError(request)) {
			return new HtmlResponse() {

				@Override
				protected void doSend(HttpServletResponse response) throws IOException {
					if (!this.isSuccessful()) {
						response.sendError(this.getStatusCode(), this.getError().toString());
						return;
					}else{
						super.doSend(response);
					}
				}
			};
		}else{
			return null;
		}
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



