Cleaned up a little and added a RESPONSE_CODE constant.