Delay writing to allow res injection with different headers
Allow rejection object to have more information
Move inputs into local variable
Only add as facts if config.unsafe is true