code: public function createResponseFactory(Api $api)
      {
          return new Responses(
              $this,
              $api,
              $this->container->make(Route::class),
              $this->container->make('json-api.exceptions')
          );
      }
docs: Create a response factory.
  
  @param Api $api
  @return Responses