Error pages send right status code