changed response code type to string