Cleaner API.php, also gives bad response code now