HTTPErrorResponse.m 488 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #import "HTTPErrorResponse.h"
  2. @implementation HTTPErrorResponse
  3. -(id)initWithErrorCode:(int)httpErrorCode
  4. {
  5. if ((self = [super init]))
  6. {
  7. _status = httpErrorCode;
  8. }
  9. return self;
  10. }
  11. - (UInt64) contentLength {
  12. return 0;
  13. }
  14. - (UInt64) offset {
  15. return 0;
  16. }
  17. - (void)setOffset:(UInt64)offset {
  18. ;
  19. }
  20. - (NSData*) readDataOfLength:(NSUInteger)length {
  21. return nil;
  22. }
  23. - (BOOL) isDone {
  24. return YES;
  25. }
  26. - (NSInteger) status {
  27. return _status;
  28. }
  29. @end