Fixed incorrect creation of status headers.
Authored by: artyom-beilis 2009-10-27
Parent: [r857]
Child: [r859]