for incorrect end point, shouldn't we return 500?