Add error messaging on API controller.