Send Proper Status Codes on wp_die (Fixes #5656)

Somewhat subjectively (and potentially incomplete) sends proper status codes when the wp_die function is used.

Fixes #5656