adding handling for 404 response code and no messages