public IHttpActionResult Get(int id) { ErrorService errorService = CreateErrorService(); var error = errorService.GetErrorById(id); return(Ok($"Here is the error you requested: {error}")); }