Return unknown command error as 400, because 501 is for unsupported HTTP methods.