function type(str){
  return str.split(/ *; */).shift();
}
Set flags such as `.ok` based on `status`.

For example a 2xx response will give you a `.ok` of __true__
whereas 5xx will be __false__ and `.error` will be __true__. The
`.clientError` and `.serverError` are also available to be more
specific, and `.statusType` is the class of error ranging from 1..5
sometimes useful for mapping respond colors etc.

"sugar" properties are also defined for common cases. Currently providing:

  - .noContent
  - .badRequest
  - .unauthorized
  - .notAcceptable
  - .notFound

@param {Number} status
@api private