'/400/c', RecordFactory::
create(Logger::ERROR, context: self::
getContextException(400
)), true
],
['/401', RecordFactory::
create(Logger::ERROR, context: self::
getContextException(401
)), true
],
['/403', RecordFactory::
create(Logger::ERROR, context: self::
getContextException(403
)), false
],
['/404', RecordFactory::
create(Logger::ERROR, context: self::
getContextException(404
)), false
],
['/405', RecordFactory::
create(Logger::ERROR, context: self::
getContextException(405
)), false
],
['/500', RecordFactory::
create(Logger::ERROR, context: self::
getContextException(500
)), true
],
];
} private static function getContextException(int
$code): array
{ return ['exception' =>
new HttpException($code)];
}}