code: func (api *API) RespondError(err error) error {
  	var response errorResponse
  	response.Error = err.Error()
  
  	return sendSerializedJSONMessage(response, api.Writer)
  }
docs: // RespondError sends err as JSON response