add optional message string to status code response functions