Ezp 20287 http error code

# Description
When an HTTP error would happen in the legacy stack. The symfony stack would not send the HTTP error code.

This commit reads the error code and adds it to the response . It needs this pull request in order to work : https://github.com/ezsystems/ezpublish-legacy/pull/608

# Test
Manual test