code: async def tile(tile_number):
      
      try:
          tile = get_tile(tile_number)
      except TileOutOfBoundsError:
          abort(404)
  
      buf = BytesIO(tile.tobytes())
      tile.save(buf, 'JPEG')
  
      content = buf.getvalue()
      response = await make_response(content)
      response.headers['Content-Type'] = 'image/jpg'
      response.headers['Accept-Ranges'] = 'bytes'
      response.headers['Content-Length'] = str(len(content))
      return response
docs: Handles GET requests for a tile number.
  
      :param int tile_number: Number of the tile between 0 and `max_tiles`^2.
      :raises HTTPError: 404 if tile exceeds `max_tiles`^2.