docs: protected void writeResponse(HttpServletResponse response, ApiResponse sresponse) {
          response.setStatus(sresponse.getCode());
          for (Entry<String, String> entry : sresponse.getHeaders()) {
              response.addHeader(entry.getKey(), entry.getValue());
          }
      }