code: def bin_stream(stream, content_type, status='200 OK',
                     headers=None):
          
          def_headers = [('Content-Type', content_type)]
          if headers:
              def_headers += headers
  
          status_headers = StatusAndHeaders(status, def_headers)
  
          return WbResponse(status_headers, value=stream)
docs: Utility method for constructing a binary response.
  
          :param Any stream: The response body stream
          :param str content_type: The content-type of the response
          :param str status: The HTTP status line
          :param list[tuple[str, str]] headers: Additional headers for this response
          :return: WbResponse that is a binary stream
          :rtype: WbResponse