Add errors for response codes and handle them accordingly.