lib/layer.js
function decode (param) {
  try {
    return decodeURIComponent(param)
  } catch (_) {
    var err = new Error('Failed to decode param "' + param + '"')
    err.status = 400
    throw err
  }
}
function decode (param) {
  try {
    return decodeURIComponent(param)
  } catch (_) {
    var err = new Error('Failed to decode param "' + param + '"')
    err.status = 400
    throw err
  }
}
function decode ( param ) { try { return decodeURIComponent ( param ) } catch ( _ ) { var err = new Error ( 'Failed to decode param "' + param + '"' ) err . status = 400 throw err } }
URI decode a string.

@param  {String} param
@return {String}
URI decode a string .