Fixed passing HTTP code from controller