Fixed creating of status code xml

Status code is now appended to the status