demo/body-parser/lib/read.js
function setErrorStatus (error, status) {
  if (!error.status && !error.statusCode) {
    error.status = status
    error.statusCode = status
  }
}
function setErrorStatus (error, status) {
  if (!error.status && !error.statusCode) {
    error.status = status
    error.statusCode = status
  }
}
function setErrorStatus ( error , status ) { if ( ! error . status && ! error . statusCode ) { error . status = status error . statusCode = status } }
Set a status on an error object, if ones does not exist
@private
Set a status on an error object if ones does not exist