Latest 0.0.1
Homepage https://github.com/TakahikoKawasaki/nv-ios-http-status
License Apache
Platforms ios 5.0, osx 10.7

Overview

This project provides a header file that lists HTTP status codes,
mainly for iOS programming. A typedef enum, HTTPStatusCode, contains
entries whose name start with kHTTPStatusCode such as kHTTPStatusCodeOK.

The initial version of the list of HTTP status codes (HTTPStatusCodes.h)
was written based on the list at Wikipedia ([List of HTTP status codes]
(http://en.wikipedia.org/wiki/List_of_HTTP_status_codes)) on April 20,
2013.

Note that unofficial HTTP status codes are included and some of
such variants can be excluded by defining HTTP_STATUS_CODES_EXLUCE_xxx.

License

Apache License, Version 2.0

Download

git clone https://github.com/TakahikoKawasaki/nv-ios-http-status.git

Example

#import "HTTPStatusCodes.h"

......

- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
{
    NSHTTPURLResponse *res = (NSHTTPURLResponse *)response;

    switch ([res statusCode])
    {
        case kHTTPStatusCodeOK:
            ......;
    }

    ......
}

Author

Takahiko Kawasaki, Neo Visionaries Inc.

Latest podspec

{
    "name": "nv-ios-http-status",
    "version": "0.0.1",
    "summary": "List of HTTP status codes as typedef enum. kHTTPStatusCodeOK, kHTTPStatusCodeNotFound, and so on..",
    "homepage": "https://github.com/TakahikoKawasaki/nv-ios-http-status",
    "license": {
        "type": "Apache"
    },
    "authors": "Takahiko Kawasaki",
    "source": {
        "git": "https://github.com/TakahikoKawasaki/nv-ios-http-status.git",
        "commit": "9d90ccc77a70a573d92a68c4bf0dfbebc1452456"
    },
    "platforms": {
        "ios": "5.0",
        "osx": "10.7"
    },
    "source_files": "nv-ios-http-status/*.{h,m}",
    "requires_arc": false
}

Pin It on Pinterest

Share This