code: func formatResponseError(response *response, err error) error {
  	if response != nil {
  		return fmt.Errorf("joker: DMAPI error: %v Response: %v", err, response.Headers)
  	}
  	return fmt.Errorf("joker: DMAPI error: %v", err)
  }
docs: // formatResponseError formats error with optional details from DMAPI response