Update api.php

changed error reporting