bug fix for sqs error codes