Change error code to 400 for invalid location being supplied