Added JSON controllers for bad endpoints