Sett statusCode to Error#code