src/validate.js
function validateResponseType (type) {
  if (validTypes.indexOf(type) < 0)
    return option.some(`Response content type ${type} is not supported`)
  return option.none
}
function validateResponseType (type) {
  if (validTypes.indexOf(type) < 0)
    return option.some(`Response content type ${type} is not supported`)
  return option.none
}
function validateResponseType ( type ) { if ( validTypes . indexOf ( type ) < 0 ) return option . some ( ` ${ type } ` ) return option . none }
Validates response type
@param {string} type - response type
@return {String} error
Validates response type