code: func panicHandler(w http.ResponseWriter, r *http.Request, rcv interface{}) {
  	ctx := r.Context()
  	pe := &platform.Error{
  		Code: platform.EInternal,
  		Msg:  "a panic has occurred",
  		Err:  fmt.Errorf("%v", rcv),
  	}
  
  	EncodeError(ctx, pe, w)
  }
docs: // panicHandler handles panics recovered from http handlers.
  // It returns a json response with http status code 500 and the recovered error message.