Sanitize status header

If we include a newline in the error message PHP
won't set the header, because it has a safe guard
against header splitting. That's why we remove
all newlines from the status header.