Skip to content

Instantly share code, notes, and snippets.

View BrentMifsud's full-sized avatar

Brent Mifsud BrentMifsud

  • Life360
  • Toronto, ON, Canada
  • 20:19 (UTC -05:00)
  • LinkedIn in/brentmifsud
View GitHub Profile
@BrentMifsud
BrentMifsud / HTTPStatusCode.swift
Last active February 21, 2021 07:35 — forked from ollieatkinson/HTTPStatusCode.swift
HTTP status codes as a Swift enum.
/// This is a list of Hypertext Transfer Protocol (HTTP) response status codes.
/// It includes codes from IETF internet standards, other IETF RFCs, other specifications, and some additional commonly used codes.
/// The first digit of the status code specifies one of five classes of response; an HTTP client must recognise these five classes at a minimum.
#if canImport(Foundation)
import Foundation
#else
import FoundationNetworking
#endif