Modified to read status code rather than check for its existence
Modified to display return code