Fixed creating of status code xml

The status code is now appended to status