Earlier quoted context omitted.
It is a serverless issue because if you were using your own server, a mistake like this wouldn't have cost money, it would have just degraded your service (or possibly brought it offline). So I guess the question is, with a mistake like this, is it better to be charged hundreds or thousands of dollars, or to have your service degrade or go offline until you can fix it?
The developer should be writing unit tests for their code so they can avoid small mistakes like this.
And even 100% code coverage doesn't find all possible errors.