HTTPErrorResponse.m 523 B

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