add status code validation