fix code strict and http status error