Minor style changes. Use Array.isArray to check errorCodes type. Change errorCodes default handling to be consistent with statusCodes.
Add note on error handler and error codes matching.