Added possibility to define redirect HTTP code