Fix bad "errors" reference in api.coffee