Add response code printing to error stub