hunk.code_window: 	// EdgeJobService represents a service to manage Edge jobs
   	EdgeJobService interface {
   		EdgeJobs() ([]portainer.EdgeJob, error)
   		EdgeJob(ID portainer.EdgeJobID) (*portainer.EdgeJob, error)
   		Create(edgeJob *portainer.EdgeJob) error
   		UpdateEdgeJob(ID portainer.EdgeJobID, edgeJob *portainer.EdgeJob) error
   		DeleteEdgeJob(ID portainer.EdgeJobID) error
   		GetNextIdentifier() int
   		BucketName() string
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit: 		Create(ID portainer.EdgeJobID, edgeJob *portainer.EdgeJob) error
  
hunk.file_path: api/dataservices/interface.go
hunk.type: replace
file: angular.module('portainer.app').factory('ContainersInterceptor', [
    '$q',
    'EndpointProvider',
    function ($q, EndpointProvider) {
      'use strict';
      var interceptor = {};
  
      interceptor.responseError = responseErrorInterceptor;
  
      function responseErrorInterceptor(rejection) {
        if (rejection.status === 502 || rejection.status === 503 || rejection.status === -1) {
          var endpoint = EndpointProvider.currentEndpoint();
          if (endpoint !== undefined) {
            var data = endpoint.Snapshots[0].SnapshotRaw.Containers;
            if (data !== undefined) {
              return data;
            }
          }
        }
        return $q.reject(rejection);
      }
      return interceptor;
    },
  ]);
  