added 202 response code -> do a retry and some code cleanup
made error more general
added support for grouped character events