I also could not find the header file that I expected should exist, so I had to write one of my own.
With the HTTPStatusCodes.h contained in the nv-ios-http-status project on GitHub, sending by HTTP status codes can be written as follows.
#import "HTTPStatusCodes.h" ...... - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response { NSHTTPURLResponse *res = (NSHTTPURLResponse *)response; switch ([res statusCode]) {
I hope HTTPStatusCodes.h can save you time and other developers.
Takahiko Kawasaki Apr 20 '13 at 17:19
source share