//
//  DOWebError.h
//  DOCore
//
//  Created by Ben Dolman on 3/1/15.
//
//

#import <Foundation/Foundation.h>

extern NSString * const DOWebErrorDomain;
extern NSString * const DOWebErrorFieldsKey;

// Error codes from the Day One web service. Codes 0-999 are HTTP error codes.
enum : NSInteger {
    DOWebErrorUnauthorized = 403,                   // Invalid auth token
    DOWebErrorFeatureUnauthorized = 470,            // User not authorized for the feature
    DOWebErrorProviderUnauthorized = 480,           //
    DOWebErrorInvalidResponse = -100,               // Response contained unexpected data
    DOWebErrorAccountDeleted = -101                 // User account has been deleted
};