Complete at least the sketch of the error-injector API endpoint.